Commit 727d49ea by BellCodeEditor

auto save

parent 29eb9a64
Showing with 22 additions and 13 deletions
fruit = {'watermelon':1,'apple':5}
k = input('today fruit name:')
v = int(input(' input '+k+ ' price: '))
if k in fruit:
if v < fruit[k] :
fruit[k] = v
print('the price was new')
else :
print('the price not had change')
else :
fruit[k] = v
print('had new thing and price')
import turtle
s = turtle.Screen()
a = s.textinput("标题","大小")
a = int(a)
color =s.textinput("标题","画笔颜色(写英语颜色):")
color2 = s.textinput("标题","填充颜色(写英语颜色):")
size = s.textinput('标题','字体大小(写数字):')
pen = turtle.Pen()
pen.pencolor(color)
pen.fillcolor(color2)
pen.begin_fill()
pen.left(45)
pen.forward(2*a)
pen.circle(a,180)
pen.right(90)
pen.circle(a,180)
pen.forward(a*2)
pen.end_fill()
pen.penup()
pen.goto(-75,-75)
pen.write('2333',font = ('Times',int(size),'normal'))
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