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

A Python interactive interpreter versus a script

There are two ways in which the Python language can be used. One is through an interactive interpreter, that allows quick testing of functions, code snippets, and ideas. The other is through a full-fledged script that can be saved and transported between systems. If you want to try out an interactive interpreter, just type python in your command-line shell.

Note

An interactive interpreter will function the same way in different operating systems, but the libraries and called functions that interact with a system may not. If specific locations are referenced or if commands and/or libraries use operating-system-specific capabilities, the functionality will be different. As such, referencing these details in a script will impact its portability substantially, so it is not considered a leading practice.

主站蜘蛛池模板: 瓮安县| 珠海市| 石景山区| 万载县| 遂宁市| 溧阳市| 穆棱市| 绥中县| 临猗县| 陇南市| 长寿区| 民县| 塘沽区| 武冈市| 周宁县| 客服| 泸西县| 邹城市| 寻甸| 宣汉县| 六枝特区| 浦东新区| 福海县| 景德镇市| 谢通门县| 松溪县| 册亨县| 高雄县| 如皋市| 霞浦县| 赤壁市| 潮安县| 汕尾市| 梁河县| 托克逊县| 休宁县| 松阳县| 即墨市| 永春县| 光山县| 溧阳市|