- 博客(1)
- 收藏
- 关注
原创 Python日记(1)
# print的用法 # 输出数字 print(123) # 输出字符串 print('hello world') print("hello world") # 含有运算符的表达式 print(3+4) # 将数据输出到文件中 注意:指定的盘要存在;要有file=fp来指定print输出的目的地 fp=open('D:/2002.2.13test.txt','a+') # a+的作用是如果文件存在则继续下一步,文件不存在则创建文件 print('hello world',file=fp) f.
2022-02-13 15:18:04
458
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅