摘要:
helloFile = open('./hello.txt') # 默认是读模式 helloContent = helloFile.read() helloFile.close() print(helloContent) # 以使用 readlines()方法,从该文件取得一个字符串的列表。 # 列 阅读全文
posted @ 2022-02-09 09:39
fly_bk
阅读(59)
评论(0)
推荐(0)
摘要:
import os print(os.path.join('usr', 'local', 'bin')) print(os.getcwd()) print(os.path.abspath('.')) print(os.path.abspath('./Os.py')) print(os.path.is 阅读全文
posted @ 2022-02-09 09:22
fly_bk
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号