我即将编写一个能够读取txt文件的python脚本,但是使用readline()总会有\n输出.如何从变量中删除它?
a = open("file", "r") b = a.readline() a.close()
python
python ×1