python菜鸟教程

2024-10-30 23:25:13

1、linux上你只需要在命令行中输入 Python 命令即可启动交互式编程,提示窗口如下:

python菜鸟教程

3、在 Python 2.7.6 版本中,以上实例输出结果如下:

python菜鸟教程

5、让我们尝试另一种方式来执行 Python 脚本。修改 test.py 文件,如下所示:

python菜鸟教程

7、输出结果:

python菜鸟教程
猜你喜欢