switch替换方案 day = 8 def get_sunday(): return 'Sunday' def get_monday(): return 'Monday' def get_tuesday(): return 'Tuesday' def get_default(): return 'Unkown' switcher = { 0: g…
sudo apt install -y python-pip python3-pip 然后用pip命令调用python2的pip pip3命令调用python3的 来自深度科技论坛的@abcfy2 Python3用:sudo pip3 install Django Python2用:sudo pip install Django