Commit 4532359f by BellCodeEditor

auto save

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