Commit 28f18931 by BellCodeEditor

save project

parent 4a792361
Showing with 9 additions and 2 deletions
def func(num):
if num == 1:
return 1
b = num + func(num-1)
return b
print(func(100))
\ No newline at end of file
......@@ -67,8 +67,8 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
if event.type == locals.KEYDOWN:
exit()
if event.type == locals.KEYDOWN:
if jumpState == "runing":
if event.key == locals.K_SPACE:
jumpState = "up"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment