Commit 876b51e6 by BellCodeEditor

save project

parent 7677a835
Showing with 31 additions and 2 deletions
# 玩家出拳 # 玩家出拳
import random import random
a=input('出拳:') a=input('出拳:')
for i in range(100):
print(".")
print("..")
print("...")
print("....")
print(".....")
print("......")
print('玩家出拳'+a) print('玩家出拳'+a)
for i in range(1000):
print('玩家出拳'+a)
b=['石头','剪刀','布'] b=['石头','剪刀','布']
c=random.choice(b) c=random.choice(b)
print('电脑出拳'+c) for i in range(100):
\ No newline at end of file print(".")
print("..")
print("...")
print("....")
print(".....")
print("......")
for i in range(1000):
print('电脑出拳'+c)
if a==c:
for i in range(1000):
print('平局')
elif a=='剪刀' and b=='布' or a=='布' and b=='石头' or a=='石头' and b=='剪刀':
for i in range(1000):
print('玩家赢了!')
elif a=='布' and b=='剪刀' or a=='石头' and b=='布' or a=='剪刀' and b=='石头':
for i in range(1000):
print('玩家输了!')
else:
for i in range(1000):
print('不许瞎搞!')
\ 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