Commit 41c63e4d by BellCodeEditor

save project

parent 10ac9cc3
Showing with 9 additions and 4 deletions
player=input("请出拳:(石头/剪刀/布)")# 玩家出拳
print("玩家出拳:"+player)
import random import random
a["石头","剪刀","布"] list = [石头,剪刀,]
d=random.choice(a) computer=random.choice(list)
print(d) print("计算机出拳:"+computer)
\ No newline at end of file if computer==player
print("平局")
elif
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