【#第一文档网# 导语】以下是®第一文档网的小编为您整理的《Python学习笔记》,欢迎阅读!
Python学习笔记 Python安装 操作系统:win7 64 bit 注意:建议安装32位的Python,因为依赖包中有些官网没有64位包,所以32位在win7下是一个好的选择。 需要的安装包: python-2.7.10.msi (32位Python Windows安装包,来自Python官网) numpy-1.10.0-win32-superpack-python2.7.exe(numpy包32位,来自numpy官网) matplotlib-1.4.3.win32-py2.7.exe(matplotlib 32位,来自官网) datautils-1.0.3.tar.gz(datautil包32位,来自官网) six-1.10.0.tar.gz(six包32位,来自官网) pyparsing-2.0.3.win32-py2.7.exe(pyparsing包32位,来自官网) 注:安装matplotlib报的时候会要求事先装好三个依赖包:datautil + six + pyparsing Python下工具包的安装方法 如果是exe的可执行包则直接运行安装。 如果是压缩包,则先解压,然后在命令行下将工作目录转到解压后的目录下,运行 Python setup.py install 就可以将该软件包安装到Python中。 Python中用pip工具安装依赖包 如pipe install --index https://pypi.mirrors.ustc.edu.cn/simple/ : jupyter Python中的序列类型: 列表(内容可修改): name = [‘a’, ‘b’, ‘c’] 元组(内容不可修改): name= (‘a’, ‘b’, ‘c’) 字典(类似于哈希表): name={} Anaconda-一个非常好的Python包管理平台(数据分析平台) 使用goagent代理使pip安装库飞一般的感觉 Python安装包我喜欢pip,方便,而且会自动安装好依赖 但是出于国内的网络,哎,大家都懂的,会时不时的连接不上。 无奈,只能“翻墙”出去咯,pip提供了代理的功能,于是也就方便了许多 我这里使用goagent,如果你没有配置过goagent,那么请自己google搞一下 我现在假设你已经安装好了,并且启动代理,端口在8087 那就直接pip install -U 你要安装的模块名 –proxy 127.0.0.1:8087 –cert goagent目录中的CA.crt 如下图 Which one module is best for GUI programming in python? Like we can use: 1.PyGTK 2. PyQT 3. PySide 4. wxPython 5. TKinter Answering this is impossible without first knowing what your requirements/wishes are. Should it be: -available in default python installs (Tkinter is the obvious choice then) -possible for a user to apply 'themes' (PyQT/PySide or PyGTK jump to mind in this case) -similar to a GUI widget set you already know from another language? (fill in your own 本文来源:https://www.dywdw.cn/4d2c2c4a680203d8cf2f248b.html