#include <stdio.h> int main() { int a,b; int c; scanf("a=%d,b=%d",&a,&b); c=a; a=b; b=c; printf("a=%d,b=%d",a,b); return 0; } 就是第三方来帮忙换数值就可以了