Commit 7beeed3b by BellCodeEditor

auto save

parent 4cc2753b
Showing with 8 additions and 4 deletions
import random import random
play=input("请出拳(石头/剪刀/布)") play=input("请出拳(石头/剪刀/布)")
print("玩家"+play) print("玩家"+play)
list[""] list["石头","剪刀","布"]
a1=random.choice(list) com=random.choice(list)
print() print("电脑"+com)
\ No newline at end of file
if play==com:
print("平局")
elif play == "石头"and com=="剪刀"
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