摘要: #Author: Administrator#Date: 2019/7/2 - 15:05menu = { '北京':{ '朝阳':{ '国贸':{ 'CICC':{}, 'HP':{}, '渣打银行':{}, 'CCTV':{}, }, '望京':{ '陌陌':{}, '奔驰':{}, '360' 阅读全文
posted @ 2019-07-02 16:36 python小白丶 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #Author: Administrator#Date: 2019/7/2 - 8:53menu = { '北京':{ '朝阳':{ '国贸':{ 'CICC':{}, 'HP':{}, '渣打银行':{}, 'CCTV':{}, }, '望京':{ '陌陌':{}, '奔驰':{}, '360': 阅读全文
posted @ 2019-07-02 14:52 python小白丶 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 字符串的拼接a='123'b='abc'c=a+bprint(c) #用+号拼接字符串,效率很低需要不断开辟内存c='888'.join([a,b]) #将列表中的每一个元素进行拼接print(c)字符串的内置方法 st='hello kitty {name}'print(st.count('l') 阅读全文
posted @ 2019-07-02 01:21 python小白丶 阅读(162) 评论(0) 推荐(0) 编辑