Commit 831e2ba1 by BellCodeEditor

save project

parent dcc55aeb
Showing with 43 additions and 3 deletions
a = 5
for i in range(7):
a*=3
a-=3
print(a)
\ No newline at end of file
cars = 0
max = 46
days = 0
while True:
a=7
b=3
cars = cars + a
cars = cars - b
days = days + 1
print(f"当前停泊数:{cars}")
print(f"当前天数是:{days}")
if cars >= max:
print("车场已满")
break
\ No newline at end of file
cars = 4
max = 68
days = 0
hour = 0
while True:
a=5
b=3
for i in range(24//4):
cars = cars + a
for i in range(24//6):
cars = cars - b
days = days + 1
hour = days * 24
print(f"当前小时数:{hour}")
print(f"当前停泊数:{cars}")
print(f"当前天数是:{days}")
if cars >= max:
print("车场已满")
break
\ No newline at end of file
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
\ 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