python3: #coding=utf-8 a = input("请输入你的名字:") print("%s"%a) #输出没有一点问题,a就是字符串(或者数字等) python2: 在python2中,你输入的字符会被当成代码运行了,所以会报错“NameError: name 'XX' is not defined” #coding=utf-8 a = input("请输入你的名字:") #此时a将等于你输入的内容执行后的结果赋值给a,但是如果…
官网原链接:https://pip.pypa.io/en/stable/installing/ Installation Do I need to install pip? pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by …