📜  python加载一个txt文件并分配一个变量 - Python代码示例
📅  最后修改于: 2022-03-11 14:46:11.825000             🧑  作者: Mango
代码示例1
with open('your_text_file.txt', 'r') as f:
username = f.readline()
password = f.readline()