Commit 6ed3fce5 by BellCodeEditor

auto save

parent cbfb1905
Showing with 22 additions and 144 deletions
y=['a','b','c','d','e','f']
y.pop(2)
y.remove('f')
y.insert(1,'c')
y.extend('f')
t=['g','h','i']
y.extend(t)
print(y)
jgdjdigjdriugjrdijgidjgidrjgifurcnhifodrsepkjb9wieuojdjxktfgkids
gfgjdkgjdrkgjdrljd
drggd
rangedgfdrfdrgd
gfgjdkgjdrkgjdrljd
z=['a','b','c','d','e','f']
z.pop(2)
z.remove('f')
z.insert(1,'c')
z.extend('f')
x=['g','h','i']
z.extend(x)
print(z)
import random
z=[]
o=0
for i in range(20):
z.append(random.randint(1,5))
print(z)
for i in range(len(z)):
if z[i]==3:
o=o+1
print(o)
for i in range(len(z)):
z.remove(4)
print(z)
......@@ -6,4 +6,3 @@ b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
c=b[2:5]
a.extend(c)
print(c)
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