Python中的将输出发送到一个文件之中
#-*-coding:utf-8-*-
# !/usr/bin/env python
file=open('/Users/用户名(一般就是一串数字)/Desktop/file.txt','w')
file.write("hello word")
`
Python中的将输出发送到一个文件之中
#-*-coding:utf-8-*-
# !/usr/bin/env python
file=open('/Users/用户名(一般就是一串数字)/Desktop/file.txt','w')
file.write("hello word")
`