一、mon.py: class Mon: def __init__(self): pass def action(self, content): print('周一要{}'.format(content)) 二、tue.py: class Tue: def __init__(self): pass ...
分类:
其他好文 时间:
2020-06-09 10:02:43
阅读次数:
67
StackTrace 类 public static void LogWrite(string logInfo, [CallerFilePath] string file=null, [CallerLineNumber] int line=0, [CallerMemberName] string m ...
函数装饰器和闭包 1装饰器前提: 函数装饰器用于在源码中“标记”函数,以某种方式增强函数的行为。这是一项强大的功能,但是若想掌握,必须理解闭包。 nonlocal 是新近出现的保留关键字,在 Python 3.0 中引入。作为 Python 程序员,如果严格遵守基于类的面向对象编程方式,即便不知道这 ...
分类:
编程语言 时间:
2020-06-07 15:02:18
阅读次数:
60
####添加一下代码 $('.x-iframe').eq(i).attr("src",$('.x-iframe').eq(i).attr('src')); 打开xadmin.js文件,添加以上代码到具体问位置。 var url = $(this).children('a').attr('_href' ...
分类:
其他好文 时间:
2020-06-06 21:54:47
阅读次数:
133
操作属性 jsDom.getAttribute('class'); jsDom.setAttribute('class','add'); jsDom.removeAttribute('class'); jqDom.attr('class'); jqDom.attr('class','add'); j ...
分类:
Web程序 时间:
2020-06-06 18:18:04
阅读次数:
86
startTime = time.clock()AttributeError: module 'time' has no attribute 'clock python 报错! AttributeError module 'time' has no attribute 'clock' python3... ...
分类:
其他好文 时间:
2020-06-05 12:49:10
阅读次数:
184
文件权限 chown 修改文件或者目录的属主和属组 Usage: chown [OPTION]... [OWNER][:[GROUP]] FILE... or: chown [OPTION]... --reference=RFILE FILE... chown jiangyi d 修改属主 chow ...
分类:
系统相关 时间:
2020-06-04 19:24:46
阅读次数:
69
myAttr为页面input标签中的自定义属性,我们可以取得该自定义标签的值 也可以通过js为标签添加新属性 jQuery版 1、$("#myId").attr("myAttr");2、$("#myId").attr("newAttr","new"); 应用场景举例:某业务系统,零件为整个系统的核心 ...
分类:
Web程序 时间:
2020-06-04 15:40:29
阅读次数:
75
[root@bogon ~]# bash start_vm.sh + + + | Property | Value | + + + | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:h ...
分类:
其他好文 时间:
2020-06-04 15:38:50
阅读次数:
78
效果:通过不断修改(定时器)Echart系列中的数据,并且重新渲染,实现Echart图表的动态效果,避免枯燥的静态图表 示例地址:http://v.bootstrapmb.com/2020/1/r6k0g7355/ var myechart = echarts.init($('.line')[0]) ...
分类:
其他好文 时间:
2020-06-04 14:03:26
阅读次数:
148