Commit 1a77d672 by BellCodeEditor

save project

parent d5a5c7c3
for i in range(1,10):
for j in range(1,i+1):
print(i,"*",j,"=",(j*i),end=" ")
print()
\ No newline at end of file
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉']
for i in range(3):
list.remove('香蕉')
print(list)
a=["华雄"]
b=["关羽","刘备","张飞"]
b.pop(0)
a.insert(0,"关羽")
print(b)
print(a)
a=['华雄']
c=['颜良','文丑']
a.extend(c)
print(a)
\ No newline at end of file
import turtle #导入画笔工具
pen=turtle.Pen() #创建画笔
colors=["red","yellow","blue","green"] #创建边长变量
screen=turtle.Screen()
screen.bgcolor("black")
for i in range(1,9999): #进入循环300次
pen.pencolor(colors[i%4])
pen.forward(i)#画笔每次移动lenth长度
pen.left(91) #画笔左转91度 #长度加1
pen.hideturtle() #隐藏画笔
turtle.done()
...@@ -23,9 +23,3 @@ while True: ...@@ -23,9 +23,3 @@ while True:
exit() exit()
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