- 从Excel到Python:用Python轻松处理Excel数据(第2版)
- 曾贤志等
- 144字
- 2024-06-04 15:38:32
1.5.1 输出
一般查看输出结果可以使用print函数,案例代码如下所示,代码在“Chapter-1-1.py”文件中。

在代码上右击,在弹出的快捷菜单中选择【Run'Chapter-1-1'】命令,或者按【Ctrl+Shift+F10】组合键运行。注意,运行代码的方法后续将不再赘述。运行当前的“Chapter-1-1.py”文件,在窗口下方显示了运行结果“嗨!python我来了!”,代码运行成功,如图1-31所示。

图1-31 输出案例