- 零基礎學Python編程實戰(zhàn)
- 林富榮編著
- 10字
- 2024-08-12 15:20:40
初級實戰(zhàn)篇
第三章 Python的第一行代碼
3.1 第一行代碼
步驟1 打開Sublime Text,選擇“File”→“New File”菜單命令,創(chuàng)建一個新文件,如圖3-1所示。

圖3-1
步驟2 按Ctrl+Shift+S組合鍵,彈出“另存為”對話框,在“文件名”文本框中輸入“hello world.py”,單擊“保存”按鈕,如圖3-2所示。

圖3-2
步驟3 雙擊打開“hello world.py”文件,輸入命令:

按Ctrl+B組合鍵執(zhí)行命令,輸出結果:

結果如圖3-3所示。

圖3-3
推薦閱讀
- The DevOps 2.3 Toolkit
- LabVIEW Graphical Programming Cookbook
- ReSharper Essentials
- Computer Vision for the Web
- Java 9 Concurrency Cookbook(Second Edition)
- Java加密與解密的藝術
- Monitoring Elasticsearch
- H5頁面設計:Mugeda版(微課版)
- Protocol-Oriented Programming with Swift
- HTML5秘籍(第2版)
- Android群英傳
- Kubernetes源碼剖析
- Python Interviews
- Everyday Data Structures
- Go語言從入門到精通