Commit 0cc668b1 by BellCodeEditor

save project

parent 25579418
Showing with 64 additions and 2 deletions
list=["苹果","香蕉","西瓜","土豆","山竹","葡萄"]
a=list[2]
print(a)
list[1]="鸭梨"
print(list)
list.pop(3)
print(list)
list.insert(3,"榴莲")
print(list)
i=0
while i<len(list):
if list[i]=="葡萄":
print(i)
i=i+1
p="结婚后即可好看好看就不能见客户就看会尽快缓解你不会尽快" import random
print(list(p)) a=0
b=0
c=0
for i in range(3000):
x=random.randint(8,10)
if x==8:
a+=1
elif x==9:
b+=1
else:
c+=1
print(a,b,c)
\ No newline at end of file
# direction="down"
# while True:
# if iskeydown("right"):
# direction="right"
# if direction=="right":
# changex(5)
# a=["赵","26","司","0","张","12"]
# c={"赵":26,"司":0,"张":12}
# print(len(a))
# print(len(c))
list=["苹果","香蕉","西瓜","土豆","山竹","葡萄"]
list=["苹果","香蕉","西瓜","土豆","山竹","葡萄"]
a=list[2]
print(a)
list[1]="鸭梨"
print(list)
list.pop(5)
print(list)
list.insert(2,"榴莲")
print(list)
# while list:
# list[5]
# print(list)
\ 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