Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@kidswong999
def write(): w=open('data_base.txt','a') te=str(temp_L_0[0])+' '+str(temp_L_0[1])+' '+str(temp_L_0[2])+'\n' w.write(te) w.write('\n') print(te) print('\n') w.close()
用\r\n
不同的操作系统不一样。Windows, Linux, MacOS,是不一样的。
https://cn.bing.com/search?q=\r\n 回车换行&qs=n&form=QBRE&sp=-1&pq=\r\n hui che换行&sc=0-14&sk=&cvid=23F92C322934440EAC86060470410A14