Commit 63ab308d by BellCodeEditor

save project

parent 38853adc
Showing with 11 additions and 5 deletions
player=input("玩家输入"+"剪刀/石头/布")
print("玩家输入"+player)
shabi=input("玩家输入"+"剪刀/石头/布")
print("玩家输入"+shabi)
import random
com=random
zhizhang=random
list=["剪刀","石头","布"]
com=random.choice(list)
\ No newline at end of file
zhizhang=random.choice(list)
print("电脑输入"+zhizhang)
if shabi==zhizhang:
print("平局")
elif (shabi=="石头"and zhizhang=="布")or(shabi=="布" and zhizhang=="石头" )or(zhizhang=="剪刀"and zhizhang=="布"):
print("你赢了")
else:
print("你输了")
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