03 2019 档案
摘要:root_path = os.path.abspath(os.path.dirname(__file__)).split('shippingSchedule')[0] shippingSchedule 为项目名字
阅读全文
摘要:把 子线程 设置为 守护线程, 则 主线程 的结束与否, 不会等 子线程都结束
阅读全文
摘要:https://blog.csdn.net/manmanpa/article/details/56282741 包含 不包含 ,,, 注意 使用()
阅读全文
摘要:下载Python源码 从http://www.python.org/download/根据需要的版本下载源文件。 例如上图就是我在官网直接找到3.5.6版本的下载页面,点击的tar源码包进行下载。 1. 安装依赖环境 # yum -y install zlib-devel bzip2-devel o
阅读全文
摘要:#定位元素 pod_input = driver.find_element(By.ID, 'j_idt9:searchForm:j_idt11:toSelectorLocation:toSelectorLocation_input') #双击这个 pod_input from selenium.webdriver import ActionChains action_chains = Acti...
阅读全文
摘要:把verify参数置为FALSE。 运行时 ,控制台 出现 警告 https://blog.csdn.net/u012478031/article/details/60578318
阅读全文
摘要:输出为 ['a', 'b', 'c', 'd', 'ff', 'gg', 'b', 'a']
阅读全文
摘要:data_list = [{"a": "123", "b": "321"}, {"a": "123", "b": "321"}, {"b": "321", "a": "123"}] run_function = lambda x, y: x if y in x else x + [y] return reduce(run_function, [[], ] +
阅读全文