Python 源程式就是一個特殊格式的文本檔案,可以使用任意文本編輯軟體做 Python 的開發
Python 程式的 檔案擴展名 通常都是 .py
執行python程式的三種方式:
python2與python3解釋器
互動器(官方shell,ipython)
IDE(pycharm)
-
python的第一個程式:
`print("hello python!")` `print("hello world!")` -
常見的python錯誤:
- 手誤
- 縮進
- 多個代碼謝雨一行
- 語言支持(python2.x默認不支持中文)
-
python常見錯誤單詞串列:
* error 錯誤 * name 名字 * defined 已經定義 * syntax 語法 * invalid 無效 * Indentation 索引 * unexpected 意外的,不期望的 * character 字符 * line 行 * encoding 編碼 * declared 宣告 * details 細節,詳細資訊 * ASCII 一種字符編碼
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/121808.html
標籤:Python
上一篇:009.python語言的優缺點
