2015年1月31日
摘要: Apply an aws account with Ubuntu Linux OS ( note: make sure that your client IP address is available in Security Group Setting)sudo apt-get install sh... 阅读全文
posted @ 2015-01-31 22:01 liuzhidong 阅读(176) 评论(0) 推荐(0)
  2014年12月4日
摘要: 好吧,基础打好,聊聊decorator,先看这段代码:def SayHi(name): return "How are you {0}, good morning".format(name)def decoator(func): def func_wrapper(name): ... 阅读全文
posted @ 2014-12-04 20:01 liuzhidong 阅读(136) 评论(0) 推荐(0)
  2014年12月3日
摘要: 原文:http://thecodeship.com/patterns/guide-to-python-function-decorators/仅此做一个中文翻译:我们知道,python在方法def的使用上,有一些非常强大的功能。譬如,将方法传给一个变量:def sayHI(name): ret... 阅读全文
posted @ 2014-12-03 19:54 liuzhidong 阅读(134) 评论(0) 推荐(0)