会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wxwwwss
博客园
首页
新随笔
联系
订阅
管理
2020年7月14日
创建字典的8种方式
摘要: l={}print(l)print("1. ")l={"wo":123,"ai":"567","ni":"woaini"}print(l)print("2. ")l=dict(wo="你",ai="是",ni=123,ha="woaini")print(l)print("3. ")l=[("wo",
阅读全文
posted @ 2020-07-14 11:23 wxwwwss
阅读(275)
评论(0)
推荐(0)
2020年7月11日
冒泡排序
摘要: l1=[99,55,66,88,77,0] for j in range(len(l1)-1): for i in range(len(l1)-1-j): if l1[i]>l1[i+1]: l1[i],l1[i + 1]=l1[i+1],l1[i] print(l1) 冒泡排序 l1=[99,55
阅读全文
posted @ 2020-07-11 08:56 wxwwwss
阅读(68)
评论(0)
推荐(0)
公告