C++ to Python Code Conversion: Dynamic Memory Allocation Example
"""\n#include "iostream"\nusing namespace std; \nint main() { \n int *a; \n while (1) { \n a = new int; \n cout << a << endl; \n } \n return 0; \n}\n"""\n\nwhile True:\n a = []\n print(id(a))
原文地址: https://www.cveoy.top/t/topic/pSDV 著作权归作者所有。请勿转载和采集!