99问答网
所有问题
python print只能显示首尾30个数据,其他是省略号,请问如何解决
如题所述
举报该问题
其他回答
第1个回答 2020-08-30
print是将之后的内容输出到终端显示;
print
>>是将内容输出定向到某文件;
例如:
fpa=open("test.txt","w")teststr="hello
world!"print
>>
fpa,
teststrfpa.close()就是将teststr字符串写到text.txt文件中。
相似回答
大家正在搜
相关问题
python print只能显示首尾30个数据,其他是省略号...
python 3 的list如何设置保证列表显示全部内容,而...
省略号为什么在python交互界面打印不出
python print只能显示首尾30个数据,其他是省略号...