python-01 # 可以输出数字 print(520) print(98.5) #可以输出字符串 print('helloworld') print("你好") #含有运算符的表达式 print(3+4) #将数据输出文件中 注意点:1.所指定的盘符存在,2.使用file=fp 3 fp=open('E:/text.txt','a+') #如果文件不存在,存在就在文件内容的后面继续追加 print('hellowold',file=fp) fp.close() #不进行换行输出(输出内容在一行当中) print('hello','world','Python')