上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 61 下一页
摘要: 该功能是基于jquery实现的,所以 第一步则是引入jquery jquery下载地址:https://jquery.com/download/ 或者使用此时调试的版本(3版本) /*! jQuery v3.2.1 | (c) JS Foundation and other contributors 阅读全文
posted @ 2018-10-24 11:19 WFaceBoss 阅读(2521) 评论(1) 推荐(0)
摘要: 前提:coding.net中的项目是私密项目 问题描述:在使用pycharm自带的git工具clone(或者push)代码时出现 错误如下:Push failed: Failed with error: unable to access 'https://git.coding.net/xxx.git 阅读全文
posted @ 2018-10-12 10:32 WFaceBoss 阅读(574) 评论(0) 推荐(0)
摘要: try: print("try中") except KeyError as e: # 异常时,执行该块 print("异常中") else: # 主代码块(try)执行完,执行该块 print("try中正常执行后会来到else中") finally: print("finally中") # 无论异常与否,最终执行该块 ''' (1)exc... 阅读全文
posted @ 2018-08-10 12:07 WFaceBoss 阅读(218) 评论(0) 推荐(0)
摘要: 通过字符串映射或修改程序运行时的状态、属性、方法。有如下四个方法 1.hasattr(obj,name_str) , 判断一个对象obj里是否有对应的name_str字符串的方法 2.getattr(obj,name_str), 根据name_str字符串去获取obj对象里的对应的方法的内存地址 3 阅读全文
posted @ 2018-08-10 11:45 WFaceBoss 阅读(166) 评论(0) 推荐(0)
摘要: 第一段代码如下: 当把return object.__new__(cls)注释了后: 代码如下: 结论: 对比上述两种结果:可以得出__new__是用来实例化,在__new__中调用了__init__,简而言之,在实例化是是__new__触发了__init__方法。(默认就有) return obj 阅读全文
posted @ 2018-08-09 16:38 WFaceBoss 阅读(217) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 61 下一页