摘要: #字典中包含元组和列表mydic={"name":"wu","age":23,1001:[1,2,3],1002:{"name1":"zhang","sex1":"nan"}}print(mydic)下面是结果 print(list(mydic.items())) print(mydic["name 阅读全文
posted @ 2019-12-07 22:42 景月 阅读(296) 评论(0) 推荐(0) 编辑
摘要: import randomwu=[]r=random.randint(30,400)for i in range(10): r = random.randint(30, 400) wu.append(r) print(wu[i]) 阅读全文
posted @ 2019-12-07 22:30 景月 阅读(85) 评论(0) 推荐(0) 编辑
摘要: import randomwu=[1,33,44,11,55,32,54] print(len(wu)) for i in range(len(wu)): print(wu[i]) 阅读全文
posted @ 2019-12-07 22:28 景月 阅读(148) 评论(0) 推荐(0) 编辑