# Nico
# 时间:2021/3/27 11:15
#输出函数print
#输出数字
print(520)
print(55.55)
#输出字符串
print('hello world')
print("hello world")
#含有运算符的表达式
print(3+1)
#将数据输出到文件 注意:1.所指定的盘符存在。 2.使用file = fp
fp=open('E:/text.txt','a+') #a+ 如果文件不存在就创建,存在就在文件内容后面继续追加
print('hello world',file=fp)
fp.close()
#不换行输出
print('hello','world','python')
12-06
382
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)