Commit b934cf19 by BellCodeEditor

save project

parent 86ddf198
Showing with 8 additions and 28 deletions
import turtle
4pen=turtle.Pen()
pen.write("呵呵呵呵呵",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
player=input("玩家出拳(石头、剪刀、布):")
print("玩家出拳:"+player)
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if player in list:
if player==computer:
print("平局")
elif (player=="石头" and computer=="剪刀") or (player=="布" and computer=="石头") or (player=="剪刀" and computer=="布"):
print("玩家胜")
else:
print("你输了")
else:
print("输入错误")
print(100/10)
\ No newline at end of file
import turtle
color=input("你想要什么颜色:")
pen=turtle.Pen()
pen.fill_color(color)
pen.begin_fill()
for i in range(5):
pen.right(144)
pen.forward(100)
pen.end_fill()
turtle.done()
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