How can I add a file to a tar without writing it to disk first in python?

前端 未结 0 1512
萌比男神i
萌比男神i 2021-02-05 08:33

I am performing a simple operation and want to write a string to a text file in a tar like the following:

import tarfile

string = ""
for i in range(100         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题