Discuss / Python / 练习

练习

Topic source

AL

#1 Created at ... [Delete] [Delete and Lock User]

添加fpath即可。路径用正斜杠“/” (键盘上右shift旁边)

fpath = 'F:/python__deep_learning/hello.txt'

with open(fpath, 'r') as f:
    s = f.read()
    print(s)

  • 1

Reply