发布于 1年前

Python 使用print语句写入文件

print("Hello, World!", file=open('file.txt', 'w'))

既可打印出信息,还能将信息保存文件。

©2020 edoou.com   京ICP备16001874号-3