Circle Piping to and from 2 Python Subprocesses
问题 I needed help regarding the subprocess module. This question might sound repeated, and I have seen a number of articles related to it in a number of ways. But even so I am unable to solve my problem. It goes as follows: I have a C program 2.c it's contents are as follows: #include<stdio.h> int main() { int a; scanf("%d",&a); while(1) { if(a==0) //Specific case for the first input { printf("%d\n",(a+1)); break; } scanf("%d",&a); printf("%d\n",a); } return 0; } I need to write a python script