#可以输出数字
print(520)
print(98.5)
#可以输出字符串
print('helloworld') 单双引号都可以
print(hellowrld) 不加引号会提示错误
#含有运算符的表达式
print(3+1)
#将数据输出文件中 注意:指定盘符要存在;使用file=
fp=open('D:/text.txt','a+') #a+ 如果文件不存在就创建,存在就在文件内容后面继续追加
print('helloworld',file=fp)
fp.close()
#不进行换行输出(输出内容在一行当中)
print('hello','world','python')