Python中的建立一个文件存储数据
Python中的将输出发送到一个文件之中#-*-coding:utf-8-*-# !/usr/bin/env pythonfile=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")
`
更多推荐



所有评论(0)