指令: python<版本> -m pip install 模塊名稱
e.g. python 3.x 版本上安裝 pyserial模塊
python3 -m pip install pyserial
e.g. python 2.7 版本上安裝 pyserial模塊
python2.7 -m pip install pyserial
指令: python<版本> -m pip install 模塊名稱
e.g. python 3.x 版本上安裝 pyserial模塊
python3 -m pip install pyserial
e.g. python 2.7 版本上安裝 pyserial模塊
python2.7 -m pip install pyserial
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta