Commit abe50756 by BellCodeEditor

save project

parent f3f4493e
Showing with 25 additions and 15 deletions
player=input("请出拳") import turtle
print("玩家出拳"+player) pen=turtle.Pen()
import random pen.up()
list=["石头","剪刀","布"] pen.right(135)
computer=random.choice(list) pen.forward(400)
print("计算机出拳"+computer) pen.write("年轻人\n不讲武德\n耗子尾汁",font=("Times",100,"normal"))
if player in list: pen.hideturtle()
if player == computer: turtle.done()
print("平局") \ No newline at end of file
elif(player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"): print("你赢了")
else:
print("你输了")
else:
print("输入错误")
\ No newline at end of file
import turtle
# pen=turtle.Pen
# pen.write("Hi.诺伊~\n用python写电子贺卡真是太有趣~\n我也喜欢py
# pen.hideturtle()
# turtle.done
pen1=turtle.Pen()
len=70
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.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