摘要:
1. print 是调试时的有用工具2. aliasing bug: 1 # x is a list 2 temp = x 3 temp.inverse() 4 """ 5 调用temp.inverse()时 也会改变x的值 6 相当于同时调用了x.inverse() 7 因为 temp和x指向了... 阅读全文
posted @ 2015-05-19 10:35
Rayvin
阅读(140)
评论(0)
推荐(0)
摘要:
http://delay-tolerant-networks.blogspot.ca/p/one-tutorial.html 阅读全文
posted @ 2015-05-19 10:19
Rayvin
阅读(85)
评论(0)
推荐(0)
摘要:
1. dict represents a dictionary use dict.get('e',0) instead of dict['e'] to get the value of 'e' if you are not sure that 'e' is included in dict 阅读全文
posted @ 2015-05-19 10:18
Rayvin
阅读(328)
评论(0)
推荐(0)

浙公网安备 33010602011771号