摘要:
def mopsort(li): for i in range(1,len(li)): for j in range(len(li)-1): if li[j] > li[j+1]: temp = li[j] li[j] = li[j+1] li[j+1] = temp return litemp = 阅读全文
摘要:
#1.基本文件操作:a.打开 b.操作 c.关闭 ## open(文件名,模式,编码) 默认是只读模式r,w 只写,a 追加## 文件是以二进制方式存在于磁盘中 # 只读 r (py3中自动将字节码转换为字符串)file = open('log.txt','r',encoding="utf-8") 阅读全文