问题描述
SELECT sum(case when status = 1 then 1 end) as totalactiverecords,COUNT sum(case when status = 0 then 1 end) as totalinactiverecords,COUNT sum(case when status = 2 then 1 end) as totalemailnotverifiedrecord,COUNT sum(case when status = 3 then 1 end) as totalrecentactiverecords,COUNT sum(case when status = 4 then 1 end) as totalemailverifiedrecords
FROM table_user where country=IN
网址:“https://www.journal-officiel.gouv.fr/balo/recherche/resultats?parutionDateStart=2021-05-05&parutionDateEnd=2021-05-05&_token=9OFJ6Ry1SbhZ8bkxPSNx1Z81Dxpnx1Z81Dxp-m” >
我这样做是因为链接是动态的,并且随着每个日期的变化而变化。
在这个 jupiter ide 中,它显示了当前存在的 url 并打印在底部,但是当我调用变量 url1 或打印 url1 时,它没有给出任何值。如何在此处调用 url1 时获取 url
解决方法
print(driver.current_url)
这里的 print
函数做了两件事,
- 首先,它将
driver.current_url
打印到控制台。 - 其次它会返回
None
(如果一个函数没有返回任何东西 python 将隐式返回None
)。
所以 url1
语句之后的 url1 = print(driver.current_url)
的值将是 None
。
看起来你需要的是,
url1 = driver.current_url
print(url1)