当前位置:主页 > 软件编程 > Python代码 >
时间:2022-01-16 08:52:52 | 栏目:Python代码 | 点击:次
如下所示:
#encoding=utf-8# x=raw_input("Please enter a text: ") y=x.replace(" ","") f = open('Output.txt', 'w') print >>f, y f.close()