python入門教程(非常詳細 python入門教程電子書)( 三 )


10.Python創建包,導入包
11.Python __init__.py的作用
12.Python查看模塊方法
13.Python __doc__
14.Python __file__
15.Python第三方庫(模塊)下載和安裝
第12章 Python文件操作(I/O)
1.什么是文件路徑,Python中如何書寫文件路徑?
2.Python絕對路徑和相對路徑
3.Python文件基本操作
4.Python open
5.以文本格式和二進制格式打開文件,到底有什么區別?
6.Python read
7.Python readline()和readlines()
8.Python write和writelines
9.Python close
10.Python seek和tell
11.Python with as
12.什么是上下文管理器,深入底層了解Python with as語句
13.Python pickle模塊
14.Python fileinput模塊:逐行讀取多個文件
15.Python linecache模塊用法:隨機讀取文件指定行
16.Python pathlib模塊
17.Python os.path模塊
18.Python fnmatch模塊
19.Python使用os模塊操作文件和目錄
【python入門教程(非常詳細 python入門教程電子書)】 20.Python tempfile模塊:生成臨時文件和臨時目錄

推薦閱讀