12 2020 档案

摘要:def is_today(target_date): """ Detects if the date is current date :param target_date: :return: Boolean """ # Get the year, month and day c_year = dat 阅读全文
posted @ 2020-12-15 17:03 .未央 阅读(1266) 评论(0) 推荐(0) 编辑
摘要:通过这行代码确定每页的下一页,因为从淘宝的第4页 xpath就匹配不出下一页的位置#这是面向对象写法,不用的把self. 去掉即可next_button = self.driver.find_element_by_css_selector('li.item.next')if 'next-disabl 阅读全文
posted @ 2020-12-10 15:35 .未央 阅读(141) 评论(0) 推荐(0) 编辑
摘要:MySQL 获取当前日期及日期格式 获取系统日期: NOW() 格式化日期: DATE_FORMAT(date, format) 注: date:时间字段 format:日期格式 返回系统日期,输出 2009-12-25 14:38:59 格式化 当前日期 mysql> select date_fo 阅读全文
posted @ 2020-12-02 15:04 .未央 阅读(3817) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示