Commit 901feac7 by BellCodeEditor

save project

parent 056d5402
Showing with 9 additions and 2 deletions
......@@ -4,4 +4,11 @@ print("玩家出拳"+xx)
# 计算机出拳
import random
list=["石头","剪刀","布"]
print("计算机出拳"+random.choice(list))
\ No newline at end of file
yy=random.choice(list)
print("计算机出拳:"+yy)
if xx==yy:
print("平手")
elif (xx=="石头" and yy=="剪刀")or(xx=="剪刀" and yy=="布")or(xx=="布" and yy=="石头"):
print("赢")
else:
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