Programming Python

 没钱买书了啊,只能看电子版的英文书了。

python系统模块:

大多数系统级别的python接口都被装载在(be shipped in)仅仅两个模块:sys和os。这样多少有一点过于简单。其它的一些标准模块也属于这两个模块:

glob : 文件名扩展

socket : 网络连接和IPC(内部处理通信)

threading,_thread,queue : 运行和同步并发线程

time,timeit : 获得系统时间详情

subproess:multiproessing : 开始和控制并发处理

signal, select, shutil ,tempfile, and others : for various other system-related task.

至少在原则上,sys提供关于python解释器的一些组件(例如:模块的搜索路径),OS则包括python运行的操作系统的一些变量和函数。实际上,它们的界限是比较模糊的。

例如sys中的input和output,他们明显是os概念上的。


Paging Documentation Strings

__doc__内建属性仅仅只包括说明性文档,但是看的时候发现它有点奇怪。(总结一下就是说__doc__没用)。

help() 函数更好。

后面是讲一些函数的具体应用。


对于后面的参考:请记住,python不会自动把字符串转换成数字,(vice versa)反之亦然。只能人工转换。



If you’ve mastered Python’s fundamentals, you’re ready to start using it to get real work done. Programming Python will show you how, with in-depth tutorials on the language’s primary application domains: system administration, GUIs, and the Web. You’ll also explore how Python is used in databases, networking, front-end scripting layers, text processing, and more. This book focuses on commonly used tools and libraries to give you a comprehensive understanding of Python’s many roles in practical, real-world programming. You’ll learn language syntax and programming techniques in a clear and concise manner, with lots of examples that illustrate both correct usage and common idioms. Completely updated for version 3.x, Programming Python also delves into the language as a software development tool, with many code examples scaled specifically for that purpose. Topics include: Quick Python tour: Build a simple demo that includes data representation, object-oriented programming, object persistence, GUIs, and website basics System programming: Explore system interface tools and techniques for command-line scripting, processing files and folders, running programs in parallel, and more GUI programming: Learn to use Python’s tkinter widget library Internet programming: Access client-side network protocols and email tools, use CGI scripts, and learn website implementation techniques More ways to apply Python: Implement data structures, parse text-based information, interface with databases, and extend and embed Python
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值