原本電腦中的設定有多個python
macOS內建python3、有透過brew、IDLE、PyCharm安裝的
https://developer.apple.com/forums/thread/680222
後來全都都刪除
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3
/usr/local/ bin/python3
/usr/bin/python3
僅留下內建的Python
右上角綠色三角形運行 左側面板可全部刪掉
Learn More →
Learn More →
在 PyCharm Interpreter 將所有其他的環境刪除
Learn More →
添加運行時的Python Interpreter
Learn More →
venv是可以創造每個專案的虛擬環境,可以隔離不同套件
手動添加內建的python3位置(/usr/bin/python3)
Learn More →
松崗 作者黃建庭 2-15 bit位移 A = 5 << 2 2-16 運算子優先順序 1 ()[]{}
Aug 7, 2021def function 要先定義,定義完要呼叫才會執行 def test(): print("123") test() 因為python是直譯的關係,如果先呼叫 會找不到定義
Jul 28, 2021code = { 'A':"10", 'B':"11", 'C':"12", 'D':"13", 'E':"14", 'F':"15", 'G':"16", 'H':"17", 'I':"34",
Jul 12, 2021List 陣列、串列 list是有序的 string = "String" for s in string: print(s) # "String" => "S","t","r","i","n","g" Tuple 元組
Jul 12, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up