Commit 7872300a by BellCodeEditor

auto save

parent 3fcaf568
Showing with 64 additions and 10 deletions
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.goto(-100,100)
pen.fillcolor("red")
pen.begin_fill()
for i in range(6):
pen.forward(150)
pen.right(360/6)
pen.end_fill()
for i in range(6):
pen.fillcolor("green")
pen.begin_fill()
for j in range(4):
pen.forward(150)
pen.left(360/3)
pen.end_fill()
pen.right(180)
turtle.done()
\ No newline at end of file
a=6
b=3
s=a*b
prent(s)
\ No newline at end of file
a=6
b=3
s=a*b
prent(s)
\ No newline at end of file
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:
file=open(r'c:\users\legao-002\desktop\hhh.txt','w',encoding='utf-8')
file.write("hhh")
file.close()
with open(r"c:\Users\Administrator\desktop\text.txt","a",encoding='utf-8')as fill:
file.write("小兰:12本")
f=file.read()
for i in fill:
if "小兰" in i:
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.pencolor("red")
def go(x,y):
pen.penup()
pen.goto(x,y)
pen.pendown()
go(-50,50)
for i in range(4):
pen.forward(100)
pen.right(90)
go(0,-50)
pen.fillcolor("yellow")
pen.begin_fill()
pen.circle(50)
pen.end_fill()
turtle.done()
\ No newline at end of file
dict1={"张三":60,"李四":80,"王五":90}
for i in dict1.keys():
print(i)
for i in dict1.values():
print(x)
for i in dict1.items():
print(u,e)
\ 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