Apress Beginning Python From Novice to Professional Gather what belongs together. If a function manipulates a global variable, the two of them might be better off in a class, as an attribute and a method. Don’t let objects become too intimate. Methods should mainly be concerned with the attributes of their own instance. Let other instances manage their own state.
Python SDK(Software Development Kit):https://www.python.org,直接下载 3.6.3,截至2017年10月19日最新版本,推荐下载 Windows x86-64 executable installer(64位机器)。直接安装至 C:\python3 这个目录,需要配置环境变量,可参考网上教程,直到能在 Windows 命令提示行下,进行 Python 的简单交互。这种交互,我们称之为 REPL(Read Eval Print Loop)。 Python 官网也提供 zip 格式的程序包,解压即可使用,看起来简单一些,但其实更适合有一定基础,对 Windows 研究更深的人下载,发行软件时作为嵌入模块(redistribute Python as part of another software package)。而 web-based 程序包体积小一些,部分模块会在安装时从网上下载(download the needed software components at installation time),在国内也不太适用。
OSQA是一款免费且开源的问答系统,采用Python的Django开发框架,基于中国优秀的问答系统CNProg,非常类似国外著名的技术问答网站 http://stackoverflow.com。 CNProg 是一个面向中国程序员的开源技术问答社区。 一个介于论坛、博客、维基和Digg之间的社区系统,基于Python和Django开发。具有透明、开放、全民管理的运作模式,让所有用户能够更加容易地寻求帮助,找到问题答案,解决实际的技术问题。
我对存储在网上的文件,始终缺乏安全感,即使是喜马拉雅,排名第一的声音平台。 从早期离线听漏风独雨的有声书开始,我逐步摸索出一套本地存储喜马拉雅声音的方法: 1. 通过网页版强大的搜索功能,找到自己喜欢的好声音,对声音文件点赞或者关注作者; 2. 用 Kindle Fire 找到对应的专辑,整张下载; 3. 通过 ES文件浏览器找到下载目录,注意,这是一批“乱码”文件,文件名是一串随机字符,无扩展名,另有一个日志文件,体积比正常的声音文件小; 4. 按文件创建时间升序排列,以新文件名+数字批量重命名,同时修改扩展名为m4a; 5. 用 Android File Transfer 将文件拷到 Mac 系统,MediaHuman Audio Converter 批量转换为 mp3; 6. 天天静听批量修改 id3 信息。
Python 基础 Python 查看版本 Mac 下可查看 版本,但不易判断是 32 位还是 64 位。