Commit 0c2d6d43 by BellCodeEditor

auto save

parent 32f027b0
Showing with 13 additions and 1 deletions
n=0
m=0
n=int(input("n"))
m=int(input("m"))
a=[[0 for f in range(n)]for h in range(m)]
for i in range(m):
for j in range(n):
a[i][j]=j+1+i*n
print(a)
\ No newline at end of file
......@@ -24,12 +24,13 @@ while True:
scree.blit(right,(240,120))
#将苹果画上去
scree.blit(food,(360,300))
scree.blit(food,(270,60))
#将贪吃蛇的身体画上去
scree.blit(body,(210,120))
scree.blit(body,(180,120))
scree.blit(body,(180,90))
scree.blit(body,(180,60))
scree.blit(body,(180,30))
scree.blit(body)
scree.blit(body,(180,0))
#刷新画面
pygame.display.update()
\ No newline at end of file
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