I didn’t answer the question because it was unclear, but I invited...
If you don’t want to change the content of a.py, you can consider directing the output to a text file first and then processing the text python a.py >> out
But I think you should just change the logic of the file a.py and directly store the value of the list where you want to output the list content.
Traverse the list directly and process each element with the str function. But generally such verification codes look at the 1s and 0s and identify the graphics through connections.
I didn’t answer the question because it was unclear, but I invited...
If you don’t want to change the content of a.py, you can consider directing the output to a text file first and then processing the text
python a.py >> out
But I think you should just change the logic of the file a.py and directly store the value of the list where you want to output the list content.
Post the code
Traverse the list directly and process each element with the str function. But generally such verification codes look at the 1s and 0s and identify the graphics through connections.