摘要:
Python enum 枚举 判断 key(键) 或者 value(值)是否在枚举中 python 的基本用法请浏览:https://www.cnblogs.com/ibingshan/p/9856424.html 这里讨论如何判断 key(键) 或者 value(值)是否在枚举中 阅读全文
posted @ 2019-01-22 14:44
ibingshan
阅读(7716)
评论(0)
推荐(0)
摘要:
pyqt text browser 设置文本 setHtml(u"Html") setPlainText(u"纯文本") setText(u"文本\n或者html") 阅读全文
posted @ 2019-01-22 13:59
ibingshan
阅读(2395)
评论(0)
推荐(0)
摘要:
Python isinstance 方法 判断 built-in types(内置类型)技巧 d = {} isinstance(d, type({})) isinstance(d, dict) l = [] isinstance(l, type([])) isinstance(l, list) t 阅读全文
posted @ 2019-01-22 11:24
ibingshan
阅读(514)
评论(0)
推荐(0)
摘要:
Python dictionary 字典 常用法 d = {} d.has_key(key_in) # if has the key of key_in d.keys() # keys list d.values() # values list d.get(key_in,[defualt]) # i 阅读全文
posted @ 2019-01-22 10:49
ibingshan
阅读(279)
评论(0)
推荐(0)

浙公网安备 33010602011771号