摘要:
#字典的遍历方式 dic={"a":1,"b":2,"c":3} for k in dic: print (k,dic[k]) for k,v in dic.items():#dic.iteritems()不再存在 print (k,v) #字典的合并方法 #dic.items()的类型是dict.items,不再能相加 #dic3=dic(dic1,**dic2)也不能使用 d... 阅读全文
摘要:
一、用我们的老朋友pip把selenium装好 二、用webdriver.Chrome启动Chrome浏览器 但是报错:WebDriverException: 'chromedriver' executable needs to be in PATH 查了一下,是因为mac的/usr/bin/中没有 阅读全文