Commit ab4a6cc6 by BellCodeEditor

save project

parent 284a0b44
Showing with 13 additions and 21 deletions
player=input("请出拳(石头/剪刀/布)")
print("玩家出拳:"+player)
import random
list=["剪刀","石头","布"]
com=random.choice(list)
print(com)
if player==com:
print("平局")
elif player=="剪刀" and com=="布":
print("玩家赢")
elif player=="剪刀" and com=="石头":
print("玩家输")
elif player=="布" and com=="石头":
print("玩家赢")
elif player=="布" and com=="剪刀":
print("玩家输")
elif player=="石头" and com=="剪刀":
print("玩家赢")
elif player=="石头" and com=="布":
print("玩家输")
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(1000,-100)
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣了~\n我也喜欢python~\n---悟空",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
len=screen.textinput("提示","你想要多大的爱心呀?")
lov
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