Commit a7c293c7 by BellCodeEditor

auto save

parent 0bba8e43
Showing with 7 additions and 2 deletions
...@@ -61,8 +61,8 @@ while True: ...@@ -61,8 +61,8 @@ while True:
position.append((x, y)) position.append((x, y))
#贪吃蛇吃到苹果 #贪吃蛇吃到苹果
if x == apple_x and y == apple_y: if x == apple_x and y == apple_y:
# apple_x = random.randint(0,660) apple_x = random.randint(0,660)
# apple_y = random.randint(0,480) apple_y = random.randint(0,480)
#利用格子准确计算苹果位置 #利用格子准确计算苹果位置
num1 = random.randint(1,22) num1 = random.randint(1,22)
num2 = random.randint(1,16) num2 = random.randint(1,16)
......
l =["1",2,3]
print(l.index("1"))
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