摘要:
##时间字符串 时间元组 时间戳 ⭐※(这个是转换之间的概念) 2022/05/01 00:00:00的转换: 时间字符串(2022/05/01 00:00:00) 时间元组 (time.struct_time(tm_year=2022, tm_mon=5, tm_mday=1, tm_hour=0 阅读全文
摘要:
python屏幕xpath元素被遮挡了,可以使用滚轮,但是又不懂用滚轮,可以用以下方法 from selenium import webdriver driver.execute_script("window.scrollTo(0,5000)")#向下滚动5000的位置 driver.execute 阅读全文
摘要:
format用法我理解成了"占位符" Province='广东省' city='广州市' township='白云区' print("省区:{0},市区:{1},乡镇:{2}".format(Province, city, township)) #注意是.format 不是逗号 运行结果: >>>省 阅读全文