官术网_书友最值得收藏!

Running Python scripts in command prompt

I can actually run the script in a command prompt. If I go to Tools, I can go to Canopy Command Prompt, and that will open up a command window that has all the necessary environment variables already in place for running Python. I can just type python test.py and run the script, and out comes my result:

So in the real world, you'd probably do something like that. It might be on a Crontab or something like that, who knows? But running a real script in production is just that simple. You can now close the command prompt.

主站蜘蛛池模板: 英吉沙县| 额尔古纳市| 昂仁县| 葵青区| 诸暨市| 武宣县| 营口市| 农安县| 镇江市| 溧水县| 拉孜县| 拉孜县| 永仁县| 武山县| 玛多县| 铁力市| 嫩江县| 霞浦县| 翁牛特旗| 徐汇区| 民和| 泾源县| 洛隆县| 麻城市| 沙洋县| 南京市| 威信县| 响水县| 南华县| 东至县| 准格尔旗| 衡山县| 鲁甸县| 广平县| 察隅县| 合肥市| 遵义市| 台南市| 镇平县| 兴城市| 耒阳市|