Commit f1ce4451 by BellCodeEditor

auto save

parent 497edd6c
Showing with 28 additions and 5 deletions
import turtle
pen = turtle.Pen()
pen.color()
pythonturtle的命令
turtle.done()
for i in range(1,10):
for j in range(1,i+1):
print('%s*%s=%s' %(j,i,i*j),end = ' ')
print( )
\ No newline at end of file
weapon = ["火箭筒",1,2,3,4,5,6]
#创建列表
weapon[0]
#提取内容
weapon[0] = "手雷"
#更换内容
weapon.clear()
#清除全部
#列表里插入内容
#格式:列表名.insert(索引,"加进去的内容")
weapon.insert(2,"插班生")
#记录列表长度(数有多少个)
#格式 len(列表名)
len(weapon)
while i < len(weapon):
\ 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