摘要: # 知识点补充: # 1) None: a = None if a: print("非None") else: print("None") if a is not None: print("非None") else: print("None") # None # None a = '' if a: 阅读全文
posted @ 2020-06-25 22:32 collin_pxy 阅读(80) 评论(0) 推荐(0) 编辑
摘要: # 获取百度网站首页上的所有a标签里的 href属性值: # import requests # from bs4 import BeautifulSoup # # html = requests.get('http://en.wikipedia.org/wiki/Kevin_Bacon') # h 阅读全文
posted @ 2020-06-25 17:50 collin_pxy 阅读(732) 评论(0) 推荐(0) 编辑