元类的剖析和单例
摘要:1.eval内置函数 # eval的使用场景: # 1.执行字符串会的到相应的结果 # 2.一般用于类型转换,得到list, dict,tuple等 dic_str = "{'a':1,'b':2,'c':3}" print(eval(dic_str)) list_str = "[1,2,3,4,5
阅读全文
posted @ 2019-04-29 16:00
posted @ 2019-04-29 16:00
posted @ 2019-04-23 19:31
posted @ 2019-04-19 15:13
posted @ 2019-04-19 15:10