2018年12月28日
The network module in python3 is much more convenient compared to python2. The requests package combines several python2 packages. This article explains the usage of requests with examples, serving as a review and future reference.……
阅读全文
2018年12月28日
python3的网络模块相对python2真的方便了很多,requests一个包就包含了python2的多个包,这从实例说明requests用法,作为复习和以后的参考……
阅读全文
2018年12月26日
What are magic methods? Of course, they have nothing to do with magicians. They are everywhere in object-oriented Python. They are special methods that allow you to add “magic” to your classes. These methods are automatically called during certain operations and represent the wisdom of Python’s object-oriented design.……
阅读全文
2018年12月26日
什么是魔术方法呢?当然它跟魔术师没有真正的联系。在面向对象的Python中处处可见。它们是一些可以让你对类添加“魔术”的特殊方法。这些方法在进行特定的操作时会被自动调用,它们是Python面向对象下智慧的结晶……
阅读全文
2018年12月21日
When frequently using GitHub, you may notice others’ repository code help information or website source code always has beautifully shaped patterns made of strings, but your own code lacks these decorations and looks plain. So how can you generate such stylish string shapes? The answer is to use the interesting command-line string shaping tool boxes.……
阅读全文
2018年12月21日
经常使用github的时候可以发现别人的仓库代码help帮助信息或者查看网页源码里面总是有那么好看的字符串构成的图案,但是自己的代码就没有这些修饰显得那么丑陋。那么如何才能够生成高大上的字符串形状呢?答案就是使用有趣的命令行字符串形状工具boxes。……
阅读全文