Commit 62fde4ee by BellCodeEditor

auto save

parent 533f3561
Showing with 0 additions and 3 deletions
import random
#等待玩家输入
playerpls = raw_input("请输入:剪刀(0) 石头(1) 布(2):")
player = int(playerpls)
#电脑
ubuntu = random.randint(0,2)
#判断输赢
if (player == 0 and ubuntu == 2) or (player == 1 and ubuntu == 0) or (player == 2 and ubuntu == 1):
print("恭喜你,你赢了")
elif ubuntu==player:
......
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