1. Create a new C or C + + project in Codeblock, because you can debug code under project.
Codeblock New Project step: File--new--project--console Applications--c or C + + can be--project the path (not use Chinese path!) )
2, the project directory under the MAIN.C changed into *.py file, this article changed into test.py.
3, click the menu bar tools--configure tools--add button, the Edit Tool page appears, where the Python compilation options are configured.
4. Click Settings--editor--keyboard Shortcuts--tools--pyrun, type F5 in new shortcut (you can set the shortcut keys for compiling the run according to your own habits), and click Add,ok.
5, at this point, the Python compilation environment configuration is complete, you can coding, press the shortcut key F5 to compile and run.
Configuring the Python compilation Environment using Code::Blocks