Commit 26e8cc97 by BellCodeEditor

save project

parent fa9f60de
Showing with 8 additions and 90 deletions
bros=["刘备","关羽","张飞"]
bros[0]=["关羽"]
bros[1]=["刘备"]
print(bros)
b=["恶来","关羽","虎痴","张郃","张辽","奉先"]
b.pop(1)
print(b)
a=["华雄"]
c=["颜良","文丑"]
a.extend(c)
print(a)
b=["袁术","公孙瓒","刘备","关羽","张飞","曹操"]
a=["吕布"]
a.extend(b[2:5])
print(a)
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
pen = turtle.Pen()
# 请创造师在下面接着创作
distance=1
for i in range(3000):
pen.forward(distance)
distance+=1
pen.right(121)
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
\ No newline at end of file
for i in range(len(h))
n="弟弟"
p=75
h=["法人",2,"翻译",32,"好大夫",45,"东瘟疫",76,"IT动物",88]
for i in range(len(h)):
if i%2==1 and h[i]>=p:
h.insert(i-1,n)
h.insert(i,p)
print(h)
......
import turtle
import turtle
pen = turtle.Pen()
pen.speed(000000000000000000000000000000000000000000000000000000)
a=1
colors=["red","bule","green","yollow","black","pink","purple","orange"]
for i in range(3000):
pen.forward(i)
pen.right(91)
a+=1
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