任俊杰1 发表于 2022-5-29 17:12:33

任俊杰1

我叫任俊杰1

任俊杰1 发表于 2022-7-10 16:58:12

while True:
    chinese = input('请输入语文分数:')
    maths = input('请输入数学分数: ')
    english = input('请输入英语分数: ')
    chinese = int(chinese)
    maths = int(maths)
    english = int(english)
    total = (chinese + maths + english)/3
    print(total)
    if total > 90:
      print('你是满级人类!!!!!!!!!!!!!!!!!!!')
    elif total > 80:
      print('加油!!!!!!!!!!!!')
    else:
      print('差!!!!!!!!!!!!')

任俊杰1 发表于 2023-6-11 17:11:08

snake_list = [, , , , ]
for position in snake_list:
    print(position)

if event.type==pygame.KEYDOWN:
    if event.key==pygame.K_UP:
      direction='up'
    if event.key == pygame.K_DOWN:
      direction = 'down'
    if event.key == pygame.K_LEFT:
      direction = 'left'
    if event.key == pygame.K_RIGHT:
      direction = 'right'
if direction=='up':
    head_x=snake_list
    head_y=snake_list-20
    head=
    snake_list,insert(0,head)
    snake_list.pop()
页: [1]
查看完整版本: 任俊杰1