os.path.isfile(os.path.join(os.path.expanduser('~'), 'realpython.txt')). 这里使用pathlib 模块,可以使代码使用优雅,可读和Pythonic 代码重写上面的两个示例,如 ...
確定! 回上一頁