摘要: 1、处理json:import json#json串就是字符串。d = { 'car1':{'color':'red','price':100,'count':50}, 'car2':{'color':'red','price':100,'count':50}, 'car3':{'color':'r 阅读全文
posted @ 2018-01-15 18:06 hoby2017 阅读(1019) 评论(0) 推荐(0)
摘要: #函数即变量# len type print input strprint(all([1,0]))#判断可迭代的对象里面的值是否都为真print(any([0,1]))#判断可迭代的对象里面的值是否有一个为真print(bin(2))#十进制转二进制ejz = bin(100)print(ejz.r 阅读全文
posted @ 2018-01-15 17:50 hoby2017 阅读(115) 评论(0) 推荐(0)