Commit 985ccfc4 by BellCodeEditor

save project

parent c6346984
Showing with 30 additions and 21 deletions
print
\ No newline at end of file
...@@ -13,26 +13,33 @@ ...@@ -13,26 +13,33 @@
# bros[0]="关羽" # bros[0]="关羽"
# bros[1]="刘备" # bros[1]="刘备"
# print(bros) # print(bros)
a=["华雄"] #a=["华雄"]
b=["袁术","夏侯惇","曹操","关羽"]
# list=["苹果","香蕉","西瓜","香蕉","桃子","香蕉"] # c=["颜良","文丑"]
# list.remove("香蕉") # a.extend(c)
# print(list) #print(b[:4])
b.remove("关羽") # print(a)
print(b) # #print(b[2:])b=["袁术","公孙瓒","刘备","关羽","张飞","曹操"]
# c=["吕布"]
# # b.remove("关羽")
# # a.insert(3,"关羽
# #print(b[:])
# c.extend(b[2:5])
# print(c)
# hero=["赵",30,"丁",37,"孙",52,"王",89,"周",98]
# name=input("请输入您的名字:")
# power=int(input("请输入您的臂力值:"))
# for i in range(len(hero)):
# if i%2==1 and hero[i]>=power:
# hero.insert(i-1,name)
# hero.insert(i,power)
# break
# print(hero)
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
dict_hero={'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
print(len(list_hero))
print(len(dict_hero))
......
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("red") screen.bgcolor("black")
colors=["green","red","orange","yellow"] colors=["green","red","orange","yellow"]
pen.speed(0) pen.speed(0)
for i in range(1000000000): for i in range(1000000000):
......
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