Commit 96b8f6d1 by BellCodeEditor

auto save

parent 2fe783cf
# a=["A","B","C","D","E"]
# for i in range(len(a)):
# print(a)
# a.insert(4,"F")
# a.pop(0)
# print(a[2:3])
# a[3]="F"
# print(a)
# import random
# for i in range(3001):
# a=random.randint(8,10)
import turtle
a=turtle.Pen()
a.fillcolor("red")
for i in range(5):
a.forward(100)
a.right(144)
turtle.done()
\ No newline at end of file
a={'3':3}
a[1]='4'
a[2]='4'
a[3]='4'
print(a)
print(a[3])
\ No newline at end of file
# 直接运行以下代码,说说你的发现: a= {"旺仔牛逼糖":30}
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] l=int(input(""))
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} if l in a:
print(len(list_hero)) print(a[w])
print(len(dict_hero)) else:
\ No newline at end of file print("滚")
\ No newline at end of file
for i in range(10):
for j in range(10):
print(str(i)+"*"+str(j))
\ 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