📜  为什么 c 比 python 快 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:56.807000             🧑  作者: Mango

代码示例1
C/C++ is relatively fast as compared to Python because when you run the Python script, 
its interpreter will interpret the script line by line and generate output but in C, 
the compiler will first compile it and generate an output which is optimized with respect to the hardware.