07就这么过去了,有不少值得高兴的事,也有些从未经历过的事,让自己成长的事。 感谢那些一直在我身边支持我的人,让我清醒、从容、坦然的面对这一切。
对于08年,有门槛、台阶等着去迈过,但,我们所珍视的生活其实还是一样的。
不是吗?
07就这么过去了,有不少值得高兴的事,也有些从未经历过的事,让自己成长的事。 感谢那些一直在我身边支持我的人,让我清醒、从容、坦然的面对这一切。
对于08年,有门槛、台阶等着去迈过,但,我们所珍视的生活其实还是一样的。
不是吗?
这样再在浏览器中查看模板的话,浏览器只会去查找 href 属性,这样的话样式表就会正确的被载入了。
如果想做好的话,交流是门艺术。这是个很大的论题并且有很多完善点因为它将影响你的个人生活和职业生涯。本文将会有点用处。Henrik给我 有关交流技巧的文章 以介绍常犯的错误及解决办法。
不错的常归错误的总结
绝大多数的错误不会真正让人远离交流,但是“自己必须是正确的”可一定会。交流不是争胜或者定义谁是“正确”的。如果某人这样对我,那么我会将其归结为辩论模式进而坚决避免和他/她交谈。
对你来说,哪条错误是最致命的?
Do you make these 10 mistakes in a conversation? - [The Positivity Blog]
看看例子: In [1]: True == False Out[1]: False In [2]: print "hello world" hello world In [3]: %hi %hist %history In [3]: %hist 1: True == False 2: print "hello world" In [4]: In Out[4]: ['\n', 'True == False\n', 'print "hello world"\n', 'ipmagic("%hist ")\n', 'In\n'] In [5]: Out Out[5]: {1: False, 4: ['\n', 'True == False\n', 'print "hello world"\n', 'ipmagic("%hist ")\n', 'In\n', 'Out\n'], 5:编辑} In [6]: print _i, _ii, _iii, _, __, ___ Out In ipmagic("%hist ") {1: False, 4: ['\n', 'True == False\n', 'print "hello world"\n', 'ipmagic("%hist ")\n', 'In\n', 'Out\n', 'print _i, _ii, _iii, _, __, ___\n'], 5: {...}} ['\n', 'True == False\n', 'print "hello world"\n', 'ipmagic("%hist ")\n', 'In\n', 'Out\n', 'print _i, _ii, _iii, _, __, ___\n'] False
In [4]: hist 1: class A: def __init__(self, start, end): """Some comment here.""" 2: a = 1 3: b = 2 4: c = 0%edit Will open up an empty editor %edit 2 4 Will open an editor containing lines 2 and 4 %edit 1 Will open up the class definition %edit 1:4 w Will open up the editor with lines 1, 2 and 3 会话和日志 每次使用后会话都有记录。并且可以重放会话快速恢复到上次会话的最后状态 开始记录日志可以使用 -log 或 -logfile
In [2]: sys.path? Type: list Base Class:String Form: ['', '/usr/bin', '/disk2/ag/common', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/pyt <...> 2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0', '/home/dstanek/.ipython'] Namespace: Interactive Length: 13 Docstring: list() -> new list list(sequence) -> new list initialized from sequence's items
In [1]: class C(object): ...: a = "a string" ...: def f(self, name, value): ...: """my docstring here""" ...: In [2]: C.a? Type: str Base Class: String Form: a string Namespace: Interactive Length: 8 Docstring: str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the In [3]: ?C.f Type: instancemethod Base Class: same object. String Form: Namespace: Interactive File: /mnt/home/dstanek/ Definition: C.f(self, name, value) Docstring: my docstring here
It's a good thing and is available at http://ipython.scipy.org/
A sprint to add other cool things may be a useful exercise.
To set ipython to be the default:Python honors the environment variable PYTHONSTARTUP and will execute at startup the file referenced by this variable. If you put at the end of this file the following two lines of code:
import IPython IPython.Shell.IPShell().mainloop(sys_exit=1)