Commit 2825a5d1 by BellCodeEditor

save project

parent 17887684
Showing with 8 additions and 14 deletions
import random
player = input("请玩家出拳:")
print("玩家出:"+player)
list4 = ["石头","剪刀","布"]
turle = random.choice(list4)
print("计算机出:"+turle)
if player == "石头" and turle == "剪刀":
print("玩家赢")
elif player == "剪刀" and turle == "布":
print("玩家赢")
elif player == "布" and turle == "石头":
print("玩家赢")
elif player == turle:
print("平局")
import turtle
turtle.write("你好呀!",font=("Times",20,"normal"))
turtle.forward(100)
turtle.hideturtle()
turtle.done()
\ 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