Commit 46fa5f6d by BellCodeEditor

auto save

parent b4521f63
Showing with 14 additions and 3 deletions
a=input("输入名字")
print(a+"你好啊")
\ No newline at end of file
sb=input("石头,剪刀,布")
print("玩家出拳"+sb)
import random
import random
a=import("玩家:")
cp=["石头","剪刀","布"]
vs=random.choice(cp)
if a==vs:
print("平局")
elif a=="石头" and vs=="剪刀" or a=="剪刀" and vs=="布" or a=="布" and vs=="石头":
print("You win!")
else:
print("You lose、")
\ 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