Commit 4532359f by BellCodeEditor

auto save

parent d0873bb9
Showing with 37 additions and 13 deletions
# 利用write()帮助悟空给诺依回信吧~ import random
import turtle c=["剪刀","火炮","布"]
screen=turtle.Screen() while True:
screen.bgcolor("light blue") a=input("剪刀,火炮,布")
len=screen.textinput("提示","你想要多大的爱心呀?") b=random.randint(0,2)
len=int(len) if c[b]=="剪刀":
pen=turtle.Pen() if c=="剪刀":
pen.write("你好\n,你好棒呀,\n洛伊.",font=("Times",30,"normal")) print("平局")
pen.hideturtle() if c[b]=="剪刀":
len=60 if c=="火炮":
print("他芭b**了")
turtle.done() if c[b]=="剪刀":
\ No newline at end of file if c=="布":
print("我芭b**了")
if c[b]=="火炮":
if c=="布":
print("他芭b**了")
if c[b]=="布":
if c=="火炮":
print("我芭b**了")
if c[b]=="火炮":
if c=="火炮":
print("平局")
if c[b]=="布":
if c=="布":
print("平局")
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