摘要: 原文:https://www.cnblogs.com/linhaifeng/articles/5984922.html 文件处理流程: 1. 打开文件,得到文件句柄并赋值给一个变量2. 通过句柄对文件进行操作3. 关闭文件 #1. 打开文件的模式有(默认为文本模式): r ,只读模式【默认模式,文件 阅读全文
posted @ 2019-11-07 19:38 月零Ray 阅读(170) 评论(0) 推荐(0)
摘要: python内置函数1:https://www.cnblogs.com/raitorei/p/11813694.html # max,min高级玩法 # l=[1,3,100,-1,2] # print(max(l)) # print(min(l)) # # # print(list(zip(('a 阅读全文
posted @ 2019-11-07 18:39 月零Ray 阅读(207) 评论(0) 推荐(0)
摘要: Python 内置函数:https://www.runoob.com/python/python-built-in-functions.html 原文:https://www.cnblogs.com/linhaifeng/articles/6113086.html#_label12 # 绝对值 # 阅读全文
posted @ 2019-11-07 17:37 月零Ray 阅读(181) 评论(0) 推荐(0)