摘要: python with as的用法 With语句是什么? 有一些任务,可能事先需要设置,事后做清理工作。对于这种场景,Python的with语句提供了一种非常方便的处理方式。一个很好的例子是文件处理,你需要获取一个文件句柄,从文件中读取数据,然后关闭文件句柄。具体用法见:https://www.cn 阅读全文
posted @ 2018-03-15 21:40 luna1 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 未能成功发送163的邮件,待查 报错: smtplib.SMTPDataError: (554, 'DT:SPM 163 smtp8,DMCowABH8svxEKpanTs3KQ--.37755S2 1521094897 •554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾 阅读全文
posted @ 2018-03-15 21:23 luna1 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 源码分析 class text_to_be_present_in_element(object): """ An expectation for checking if the given text is present in the specified element. locator, text 阅读全文
posted @ 2018-03-15 12:53 luna1 阅读(256) 评论(0) 推荐(0) 编辑
摘要: python所有的标准异常类: 阅读全文
posted @ 2018-03-15 12:07 luna1 阅读(101) 评论(1) 推荐(0) 编辑