設定ubuntu 預設python版本
sudo apt-install python3.7
cd /usr/bin
sudo unlink python
sudo unlink python3
sudo ln -sv /usr/bin/python3.7 python
sudo ln -sv /usr/bin/python3.7 python3
sudo apt-install python3.7
cd /usr/bin
sudo unlink python
sudo unlink python3
sudo ln -sv /usr/bin/python3.7 python
sudo ln -sv /usr/bin/python3.7 python3
當我們執行以下指令
python -c "import this"
將會出現
其中這幾句話果然很對我的味
Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!
不學python不行啊
曾有位高人說過:
python因為簡單,所以很難
想必python如同珍瓏棋局, 當世高人紛紛堪不破(aka: 學越多越難懂python),
只有心中毫無雜念之人(初心者)才能真正了解python啊
學了兩天, 終於搞定hello world
最後發現python3 與 python2差異頗大, 借書只能借到舊版, 只好買了最新版碁峯 python 3.9 技術手冊