Commit d952d77a by BellCodeEditor

auto save

parent 5a5cabd9
Showing with 14 additions and 0 deletions
import random
play=input("剪刀石头布\n")
print("玩家:"+play)
computer=random.randint(0,2)
if computer==0:
c1="石头"
elif computer==1:
c1="剪刀"
elif computer==2:
c1="布"
print("电脑:"+c1)
if play=="剪刀" and c1=="布":
print("恭喜你赢了")
elif play=="剪刀" and c1=="剪刀":
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