摘要:
from io import BytesIO from django.utils.encoding import escape_uri_path bytes_file = BytesIO() f.write(bytes_file) bytes_file.seek(0) file_name = "订单 阅读全文
posted @ 2021-08-06 18:37
pythoner_wl
阅读(613)
评论(0)
推荐(0)
摘要:
Python之IO模块的使用 1.StringIO的使用 # 类似文件的缓冲区 from io import StringIO cache_file = StringIO() print(cache_file.write('hello world')) # 11 print(cache_file.s 阅读全文
posted @ 2021-08-06 14:36
pythoner_wl
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号