[Python] nested list

li = ["武藤兰", 1, 2, 3, [3, 4, 5], "哇哈哈哈"]
a = 1
for i in li:
    if type(i) != type(a):
        for j in i:
            if j=="":
             b=li.index(i)
             c=i.index(j)
             break

d=li[b].replace("","")
li[b]=d
li [ 2] = " " 
li [ 4] [2] = 9
 print (ii)

[ 'Muto blue', 1, 'I', 3, [3, 4, 9], 'wow oh oh oh']

Guess you like

Origin www.cnblogs.com/yang30293316/p/11241101.html