易截截图软件、单文件、免安装、纯绿色、仅160KB

Python的操作符

1.#:注释符
2.比较运算符(基本和Java类似)
<  <=  >  >=   ==   !=   <>
Python目前支持两种"不等于"比较运算符,!=和<>,分别是C风格和ABC/Pascal风格。目前后者慢慢地被淘汰了,
推荐使用前者。
在Python中,支持3<4<5这样的表达式,既简洁又优美。它实际上是下面表达式的缩写:
3<4 and 4<5
建议:合理使用括号以增加代码的可读性
在很多场合使用括号都是是一个好主意。括号在Python中不是必须存在的,不过为了可读性,使用括号总是值得的。任何维护你代码
的人都会感谢你,在你再次阅读自己的代码时,你也会感谢你自己。
3.逻辑运算符
and or not
4.布尔型
True和False(首字母均为大写)


相关文档:

[Python module] multiprocessing


multiprocessing — Process-based “threading” interface
Introduction
multiprocessing is a package that supports spawning processes using an API similar to the threading module. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Glo ......

Python: python的简单表达式计算器

这是一个简单的表达式计算器, 不太懂用Tkinter写GUI, 参考了别人的代码
from __future__ import division
from Tkinter import Tk, Entry, Button, Label, mainloop
from tkFont import Font
def get_value ():
v = ''
try:
v = eval(text.get()) #use eval to calculate the vlaue of the text
except:
pa ......

自动下载并保存博客 Python脚本

谢了一个自动下载指定人的博客的脚本
这个脚本是用来下载csdn博客的
同样的方法可以下载一般其他网站的博客,如sina
有时页面访问会被拒绝,重新运行即可
这种程序是在分析了指定网站,我在这儿是csdn,之后编写出的
会牵涉到网页的编码问题,有时程序运行会因此终止
我自己的博客已经下载忘了
只是下载网页
使用网 ......

python应用领域介绍

python应用领域介绍 
Python作为一种功能强大且通用的编程语言而广受好评,它具有非常清晰的语法特点,适用于多种操作系统,目前在国际上非常流行,正在得到越来越多的应用。 
下面就让我们一起来看看它的强大功能: 
Python(派森),它是一个简单的、解释型的、交互式的、可移植的、面向对象的超高级语 ......

python性能增强工具shedskin 0.3版发布

http://code.google.com/p/shedskin/ Shed Skin 0.3 - support for 3 new standard library modules (now about 20 in total): - itertools (jeremie roquet) - heapq (jeremie roquet) - csv (converted using shedskin) - 4 new example programs (now 44 in total!): - maximum weighted matching al ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号