Commit 0856a466 by BellCodeEditor

auto save

parent a3ec435d
...@@ -21,10 +21,8 @@ while True: ...@@ -21,10 +21,8 @@ while True:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
if event.type==locals.KEYDOWN: if event.type==locals.KEYDOWN:
x+=30
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
......
A=input("What's your name?")
B=int(input("N B L?"))
C=['赵一',40,'马牛逼',100,'嬴政',90]
for i in range(len(C)):
if i%2==1 and C[i]>=B:
C.insert(i-1,A)
C.insert(i,B)
break
print(C)
\ No newline at end of file
cost = {'牛逼果':3,'伞兵果':100,'RNM':19,'艹':22,'丨':45}
k=input('创建一个水果')
v=input(' "良心"价格 ')
if k in cost:
if float(v)<cost[k]:
cost=[k]=float(v)
print(k + '降价' + v )
else:
print(k+'上涨了')
else:
cost[k]=float(v)
print(k+v)
\ 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