摘要:
Aodh alarm NOTIFIER ==> NOTIFIER will resolve the URL and post the data to http server setup a Http server ==> link: https://docs.python.org/2/library 阅读全文
摘要:
in terminal, when start the service, the service will run in this terminal, and if kill this terminal or command, this service will be killed. look up 阅读全文
摘要:
检查数据可以让程序更健壮,用术语来说就是防御性编程。检查数据的时候,有这样的两种不同的风格。LBYL:Look Before You Leap EAFP:Easier to Ask Forgiveness than Permission LBYL即事先检查。EAFP是不检查,出了问题由异常处理来处理 阅读全文
摘要:
(1)特性:无序,不重复,可变(默认)与不可变两种类型(2)常用场景set 的 union, intersection,difference 操作要比 list 的迭代要快。因此如果涉及到求 list 交集,并集或者差的问题可以转换为 set 来操作。 语法 操作 说明set(list1) | se 阅读全文
摘要:
(1)Properties:No order, No repeat, implemented by hash_table Note: key is immutable, it must can be hashed, so the type of key must be immutable, such 阅读全文