摘要:
#字典中包含元组和列表mydic={"name":"wu","age":23,1001:[1,2,3],1002:{"name1":"zhang","sex1":"nan"}}print(mydic)下面是结果 print(list(mydic.items())) print(mydic["name 阅读全文
摘要:
import randomwu=[]r=random.randint(30,400)for i in range(10): r = random.randint(30, 400) wu.append(r) print(wu[i]) 阅读全文
摘要:
import randomwu=[1,33,44,11,55,32,54] print(len(wu)) for i in range(len(wu)): print(wu[i]) 阅读全文