Commit f1f90204 by BellCodeEditor

save project

parent bc13f44b
Showing with 12 additions and 0 deletions
import random
play=input("剪刀/石头/布")
rom=random.choice("剪刀/石头/布")
print("玩家出拳"+play)
print("电脑出拳"+rom)
if play==rom:
print("平局")
elif play=="剪刀"and rom=="布" or play=="石头" and rom=="剪刀" or piay=="布" and rom=="石头":
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