📜  硒python代码示例中相同时间的条件

📅  最后修改于: 2022-03-11 14:45:32.315000             🧑  作者: Mango

代码示例1
import datetime
import time

# datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])
# The year, month and day arguments are required. tzinfo may be None.
target_time = datetime.datetime(2018, 1, 23, 13, 2, 00)  # 13:02 pm on 23 January 2018
while datetime.datetime.now() < target_time:
    time.sleep(10)
print("It is 13:02 pm, 2018. Resuming Test Execution")