Commit bb8f1643 by BellCodeEditor

auto save

parent cd254aad
Showing with 24 additions and 5 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
filel=open(r"C:\Users\admin\text.txt",'w',encoding='utf-8')
filel.write('小兰:12本''小丽:11本''李文:9本''张伟:16本')
filel.close()
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,-100)
turtle.pendown()
turtle.hideturtle()
for i in range(4):
turtle.fd(200)
turtle.lt(90)
turtle.fd(60)
turtle.penup()
turtle.lt(90)
turtle.fd(90)
turtle.right(90)
turtle.fillcolor('red')
turtle.pencolor('red')
for i in range(3):
turtle.begin_fill()
turtle.circle(10)
turtle.end_fill()
turtle.penup()
turtle.fd(40)
turtle.pendown()
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