摘要:
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 = "订单 阅读全文
摘要:
Python之IO模块的使用 1.StringIO的使用 # 类似文件的缓冲区 from io import StringIO cache_file = StringIO() print(cache_file.write('hello world')) # 11 print(cache_file.s 阅读全文