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