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

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.

主站蜘蛛池模板: 莆田市| 当阳市| 安新县| 望奎县| 邵阳县| 新河县| 万安县| 滕州市| 渝中区| 南涧| 青川县| 永福县| 万州区| 龙井市| 文山县| 绩溪县| 合肥市| 杭州市| 亳州市| 林周县| 铁岭市| 余江县| 威远县| 密云县| 安龙县| 城固县| 阳泉市| 龙门县| 和顺县| 秦皇岛市| 沂源县| 耒阳市| 开江县| 博客| 永胜县| 康乐县| 镇康县| 通化县| 东源县| 祁阳县| 界首市|