1 | initial version |
You cannot avoid creating r4.txt
if C program wants its input in the file (unless you modify the program). The other files can be eliminated via:
import os
result = os.open(f"./a.out {kk} r4.txt | awk '{print $NF}'").read()
2 | No.2 Revision |
You cannot avoid creating r4.txt
if C program wants its input in the file (unless you modify the program). The other files can be eliminated via:
import os
result = os.open(f"./a.out os.popen(f"./a.out {kk} r4.txt | awk '{print $NF}'").read()
3 | No.3 Revision |
You cannot avoid creating r4.txt
if C program wants its input in the file (unless you modify the program). The other files can be eliminated via:
import os
result = os.popen(f"./a.out {kk} r4.txt | awk '{print $NF}'").read()
'{{print $NF}}'").read()