字典
判断python字典中key是否存在的两种方法
d.has_key('b')
'b' in d # 推荐 not in d.keys()
list
字符串
《增强的格式化字符串format函数》点赞超多
http://blog.csdn.net/handsomekang/article/details/9183303
判断python字典中key是否存在的两种方法
d.has_key('b')
'b' in d # 推荐 not in d.keys()
《增强的格式化字符串format函数》点赞超多
http://blog.csdn.net/handsomekang/article/details/9183303