Commit 691e63f1 by BellCodeEditor

save project

parent fe718efb
Showing with 4 additions and 4 deletions
import random() import random
# 玩家出拳 # 玩家出拳
i=input("请出拳(石头/剪刀/布)") i=input("请出拳(石头/剪刀/布)")
print("玩家出拳"+i) print("玩家出拳"+i)
s=("剪刀","石头","布") s=["剪刀","石头","布"]
m=random.choice(s) m=random.choice(s)
print(s) print("电脑出拳"+m)
\ No newline at end of file \ 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