if '__main__' == __name__:
s1 = 100
s2 = 99
s1,s2 = s2,s1
print (s1,s2)
import语句有时候为了限制它们的作用范围或者节省初始化时间,被卸载函数内部,虽然python的解释器不会重复import同一个模块不会出错,但重复导入会影响部分性能。有时候为了实现懒加载(即使用的时候再加载一个开销很大的模块),可以这么做:
https://github.com/0x5e/wechat-deleted-friends
ctext 工具包
树莓π的智能硬件 http://blog.jobbole.com/97180/
Python自动生成二维码
参考文章:https://github.com/sylnsfar/qrcode/ 中文地址:https://github.com/sylnsfar/qrcode/blob/master/README-cn.md
python有趣编程 https://www.zhihu.com/question/21395276 基于python深度学习库DeepPy的实现:GitHub - andersbll/neural_artistic_style: Neural Artistic Style in
https://github.com/andersbll/neural_artistic_style
Python基于python深度学习库TensorFlow的实现:GitHub - anishathalye/neural-style: Neural style in TensorFlow!基于python深度学习库Caffe的实现 https://link.zhihu.com/?target=https%3A//github.com/anishathalye/neural-style
https://link.zhihu.com/?target=https%3A//github.com/fzliu/style-transfer
Norvig大神用21行python写出的拼写检查器 http://norvig.com/spell-correct.html
Python 实现端口扫描器 使用 Python 语言开发服务器端口扫描器,用来检测目标服务器上有哪些端口开放。适用于有 Python 和 计算机网络语言基础的用户。涉及Python网络开发,端口扫描,多线程,python-nmap包等知识点。