Entries for the ‘Python’ Category
Python and pizza.py
Pizza.py is a post-processing tool package for lammps – a MD package. I downloaded it and unpacked in a local directory. Each time I have to start it with a command like “python -f abs_path/pizza.py” where the abs_path is the absolute path to pizza.py source directory. However this directory is very long on my computer [...]
逆向切分由Python zip函数合并的列表
Unzip a Python list. This is cool! Suppose that you have a list with tuples as the member.
IPython的彩色显示
无论刚安装完IPython还是Engthought的套装,IPython默认的命令行上没有彩色显示。原因是IPython接受一些命令行参数,而默认安装后“colors”和“color-info”这两个magic函数并没有被调用。下面我们看怎样打开彩色显示:
