Commit 9ff5e220 by BellCodeEditor

auto save

parent f0417f4c
import turtle
screen=turtle.Screen()
screen.bgcolor("yellow")
len=screen.textinput("你好","你要多粗的爱心")
lovesize=int(len)
pen=turtle.Pen()
pen.penup()
pen.goto(100,-120)
pen.write("下面是诗朗诵\n盼望着,盼望着,\n东风来了,春天的脚\n步更近了!$@#^%$^^\n%@^%^$@^^%*(\n^&)$^%@",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.shape("turtle")
pen1.fillcolor("blue")
pen1.begin_fill()
pen1.pensize(lovesize)
pen1.pencolor("blue")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.right(45)
pen1.end_fill()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("yellow")
len=screen.textinput("你好","你要多大的爱心")
lovesize=int(len)
pen=turtle.Pen()
pen.penup()
pen.goto(100,-120)
pen.write("下面是诗朗诵\n盼望着,盼望着,\n东风来了,春天的脚\n步更近了!$@#^%$^^\n%@^%^$@^^%*(\n^&)$^%@",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.penup()
pen1.goto(0,-80)
pen1.hideturtle()
pen1.shape("turtle")
pen1.fillcolor("blue")
pen1.begin_fill()
pen1.pensize(10)
pen1.pencolor("blue")
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.right(45)
pen1.end_fill()
turtle.done()
\ No newline at end of file
#"玩家出拳"
print("噔噔蹬蹬 石头剪刀布大赛开始了!!!")
name=input("要出(石头/剪刀/布):")#输入我们要显示的字
print("我要出:"+name) # 打印出 输入的答案
#机器人出拳
import random #导入random随机模块
list=["石头","剪刀","布"] #创建列表
game=random.choice(list) #在列表中随机抽取一个赋值给game变量
print("机器人出:"+game) #打印出game变量
#得出结果 elif 否则如果
if name in list:# 如果玩家出的在列表中
print("输入正确")
if name == game: #如果玩家和机器人出的一样的
print("平局") #打印出平局
elif (name=="石头" and game=="剪刀") or (name=="剪刀" and game=="布") or (name=="布" and game=="石头"):#否则如果 我的得胜利条件
print("你赢了")
else:
print("你输了")
else:
print("输入错误")
\ No newline at end of file
import turtle #导入turtle模块
# pen=turtle.Pen()
# pen.speed(0)
# for i in range(1,200,2):
# pen.forward(i)
# pen.right(100)
# pen.hideturtle()
# turtle.done()
# pen = turtle. Pen()
# pen.speed(0)
# colors=["red","orange","yellow","green"]
# for i in range(1,300):
# pen. pencolor(colors [i%4])
# pen. forward(i)
# pen. right(91)
# turtle.done()
for i in range(10):
print("\n")
for j in range(1,i):
print(j,'x',i,'=',(j*i),end=" ")
import turtle
import turtle
screen=turtle.Screen
screen.bgcolor("yellow")
screen.textinput("你好“)
pen=turtle.Pen()#
pen.penup()
pen goto(100,-80)
pen.write("n你们好,\n",fout=("Times",30,"normal"))#
pen.hideturtle()#
Pen1=turtle.pen()
pen1.pensize(6)
pen1.pencolor("red")
pen1.left(45)
pen1. forward(180)
pen1. circle(50,180)
pen1.right(90)
pen1. forward(180)
pen1. circle(50,180)
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