📜  如何在 python 代码示例中读取文件

📅  最后修改于: 2022-03-11 14:46:09.207000             🧑  作者: Mango

代码示例6
# when you want to read the file from terminal in python use 
import sys
f = open(sys.argv[1])
line=f.readline()