Commit 7ee960da by BellCodeEditor

save project

parent e3e4e6c3
Showing with 16 additions and 0 deletions
import turtle
pen=turtle.Pen()
pen.write("嘿,\n玩游戏要啸着玩",font=("仿宋",50,"normal"))
turtle.done()
\ No newline at end of file
import random
player=input("选择(石头-剪刀-布):") player=input("选择(石头-剪刀-布):")
print("玩家选择:"+player) print("玩家选择:"+player)
list=["石头","剪刀","布"]
computer=random.choice(list)
print("计算机选择"+computer)
if computer==player:
print("双方打平")
elif (computer=="石头" and player=="布") or (computer=="剪刀" and player=="石头") or(computer=="布" and player=="剪刀"):
print("player胜利")
else:
print("computer胜利")
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