Python全栈开发教程笔记_python全栈开发笔记:https://gitee.com/wupeiqi/python_cour_十年一刻丶若星河的博客-CSDN博客

网站介绍:本文档基于B站Python教程一、print()函数1. 可以输出数字print(520)print(98.5)2. 可以输出字符串print('hello world')print("hello world")3. 可以输出含有运算符的表达式print(3+1)4. 可以输出到文件fp = open('D:/text.txt','a+')print('hello world',file=fp)fp.close**注意:**1.所指定的盘符必须存在;2.使用 file=f_python全栈开发笔记:https://gitee.com/wupeiqi/python_course