info_rent = MysqlUtils.select_yezhu_rent() info_sale = MysqlUtils.select_yezhu_sale() now_time = datetime.datetime.now() #now time type is datetime and mysql spidertime is also datetime for i in info_rent: city = i[0] spidertime = i[1] d_time = now_t…
time内置模块的方法 1.time() 时间戳 time() -> floating point number 浮点数 Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them. import time print(time.time()) C:\python35\python3.exe D:/pyproj…