Python中的建立一个文件存储数据

Python中的将输出发送到一个文件之中

#-*-coding:utf-8-*-
# !/usr/bin/env python
file=open('/Users/用户名(一般就是一串数字)/Desktop/file.txt','w')
file.write("hello word")


`

猜你喜欢

转载自blog.csdn.net/ZXG20000/article/details/106539469