摘要: from bs4 import BeautifulSoup from urllib.request import urlopen import re import random base_url = "https://baike.baidu.com" his = ["/item/%E7%BD%91%E7%BB%9C%E7%88%AC%E8%99%AB/5162711"] for i in ... 阅读全文
posted @ 2018-12-02 20:35 萧白白 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 查看天气的代码 阅读全文
posted @ 2018-06-25 17:25 萧白白 阅读(163) 评论(0) 推荐(0) 编辑
摘要: menu={ "北京":{ "朝阳":{...}, "昌平":{ "沙河":{ "老男孩":{}, "阿泰包子":{}, }, "天通苑":{...}, "回龙观":{}, }, "海淀":{...}, }, "上海":{...}, "山东":{...},}current_layer = menup 阅读全文
posted @ 2018-06-07 16:09 萧白白 阅读(263) 评论(0) 推荐(0) 编辑
摘要: #商品清单product_list =[ ('Mac',9000), ('kindle',800), ('tesla',900000), ('python book',105), ('bike',2000),]#用户输入金额saving=input('please input your saving 阅读全文
posted @ 2018-06-01 21:37 萧白白 阅读(717) 评论(0) 推荐(0) 编辑