Commit 44c2b159 by BellCodeEditor

auto save

parent c6188a1e
Showing with 37 additions and 4 deletions
a = int(input())
b = list(map(int,input().split(' ')))
lk=[]
for i in range(0,len(b)):
touqiu = 1
for j in b[i+1:]:
if j<=b[i]:
touqiu += 1
b[i] = j
lk.append(touqiu)
print(lk)
print(max(lk))
\ No newline at end of file
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
bg=pygame.image.load('bg.png')
tou=pygame.image.load('right.png')
pg=pygame.image.load('apple.png')
st=pygame.image.load('body.png')
st1=pygame.image.load('body.png')
st2=pygame.image.load('body.png')
# 创建一个窗口 # 创建一个窗口
?? screen=pygame.display.set_mode((800,600))
\ No newline at end of file while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(tou,(0,0))
screen.blit(pg,(120,360))
for c in range(0,801,30):
for d in range(0,601,30):
screen.blit(st,(c,d))
pygame.display.update()
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