diff --git a/day3.py b/day3.py new file mode 100644 index 0000000..256be0a --- /dev/null +++ b/day3.py @@ -0,0 +1,8 @@ +import random +# 玩家出拳 +playur=input("请输入你的选择(石头/剪刀/布)") +print("玩家出拳:"+playur) +#计算机出拳 +list=["剪刀","石头","布"] +a=random.choice(list) +print("计算机出拳:"+a) \ No newline at end of file