Exploring Python Code Objects https://late.am/post/2012/03/26/exploring-python-code-objects.html Inspired by David Beazley's Keynote at PyCon, I've been digging around in code objects in Python lately. I don't have a particular axe to grind, nor some…
How to run Python Code from Sublime,and How to run Python Code with input from sublime Using SublimeREPL To install it you need package control this lets you easily install plugins. Follow the instructions. Once thats done: in Sublime press Ctrl + Sh…
python程序运行中改变环境变量: Trying to change the way the loader works for a running Python is very tricky; probably OS/version dependent; may not work. One work-around that might help in some circumstances is to launch a sub-process that changes the environme…
Code Like a Pythonista: Idiomatic Python 如果你有C++基础,那学习另一门语言会相对容易.因为C++即面向过程,又面向对象.它很底层,能像C一样访问机器:它也很高级,有模板.STL 等.如果认真读过<深入C++对象模型>,我想其它语言不会比这个更复杂.你对C++了解的越深,你用其它语言写出的代码就越像C++,这样就体现不出新 语言的价值了.所以,学习新语言要抛弃原有的潜意识,包括代码风格. 1. The Zen of Python (1) 漂亮比丑陋好…
This tiny program consists of 2 parts - registration and login. In the part of registration, the key point is to create a folder to store user's information. And the part that cost my most time is how to name a file automatically with variety's name…