上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 66 下一页
摘要: 把要导入的包的路径加入到sys.path: 阅读全文
posted @ 2018-02-05 14:12 安迪9468 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 目录结构 https://www.cnblogs.com/bigberg/p/6423164.html 代码示例 https://github.com/triaquae/py3_training 阅读全文
posted @ 2018-02-05 11:21 安迪9468 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 自整理: https://www.cnblogs.com/andy9468/p/9996464.html 网文参考: http://blog.csdn.net/zhangfh1990/article/details/73442447 阅读全文
posted @ 2018-02-05 10:31 安迪9468 阅读(104) 评论(0) 推荐(0) 编辑
摘要: quotes = ('A man is not complete until he is married. Then he is finished.', 'As I said before, I never repeat myself.', 'Behind a successful man is an exhausted woman.', ... 阅读全文
posted @ 2018-02-04 21:59 安迪9468 阅读(287) 评论(0) 推荐(0) 编辑
摘要: import xml.etree.ElementTree as etree import json class JSONConnector: def __init__(self, filepath): self.data = dict() with open(filepath, mode='r', encoding='utf-8') as f... 阅读全文
posted @ 2018-02-04 21:15 安迪9468 阅读(102) 评论(0) 推荐(0) 编辑
摘要: class Frog: def __init__(self, name): self.name = name def __str__(self): return self.name def interact_with(self, obstacle): print('{} the Frog encounters ... 阅读全文
posted @ 2018-02-04 21:15 安迪9468 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 如何为assert断言语句添加异常参数 assert的异常参数,其实就是在断言表达式后添加字符串信息,用来解释断言并更好的知道是哪里出了问题。格式如下:assert expression [, arguments]assert 表达式 [, 参数] Traceback (most recent ca 阅读全文
posted @ 2018-02-03 12:00 安迪9468 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 输出结果 zz/mytest.py:5: UserWarning: 警告:XXX。 warnings.warn("警告:XXX。")其他程序 阅读全文
posted @ 2018-02-03 11:43 安迪9468 阅读(73) 评论(0) 推荐(0) 编辑
摘要: requests获取所有状态码 requests默认是不会获取301/302的状态码的。可以设置allow_redirects=False,这样就可以获取所有的状态码了 封装一个获取所有状态码的函数,同时实现验证返回值的方法 说明: 反扒:总结多种验证返回值的方式。requests比如:检查状态码、 阅读全文
posted @ 2018-02-01 20:10 安迪9468 阅读(1977) 评论(0) 推荐(1) 编辑
摘要: 编辑 jar包下载 https://mvnrepository.com/search?q=mysql-connector 编程语言排行 https://www.tiobe.com/tiobe-index/ 开发者的AI搜索 https://www.phind.com/ 1、在线流程图绘制 (1) h 阅读全文
posted @ 2018-02-01 16:14 安迪9468 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 66 下一页