Commit 3dbd1d12 by BellCodeEditor

save project

parent 918014ed
Showing with 3 additions and 21 deletions
import random
# 玩家出拳
s=input("输入你想出的(剪刀/石头/布)")
print("玩家出",s)
list=["剪刀","石头","布"]
d=random.choice(list)
print("机器出",d)
print("玩家出",s)
if s in list:
if s=d:
print("平局")
elif s=="石头" and d=="剪刀":
print("玩家赢")
elif s=="石头" and d=="剪刀":
print("玩家赢")
elif s=="剪刀" and d=="布":
print("玩家赢")
else:
print("机器赢")
else:
print("输入错误")
dict_54188={"fewfrewew":1234567890,"fwewdewdew":9876543210}
print(54188)
\ 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