1 class Foo: 2 def __init__(self,name): 3 self.name=name 4 def __call__(self, *args, **kwargs): 5 print(' >') 6 f=Foo('egon') 7 f() 8 9 class Foo: 10 ...
分类:
编程语言 时间:
2017-03-10 12:18:32
阅读次数:
153
#!/udict/bin/envpython
#-*-coding:utf_8-*-
#Date:2016/10/17
#Author:wangpeng
#blog:http://wangpengtai.blog.51cto.com
importsubprocess
importnmap
importtime,datetime
importxlrd,xlsxwriter,xlwt
importos,sys
fromxlutils.copyimportcopy
frommultiprocessingimport..
分类:
编程语言 时间:
2017-03-10 11:30:51
阅读次数:
392
1.1跨平台windows、MacOS、Linux、WWW。1.2Python的应用范围操作系统3D动画WEB云计算企业应用1.3可以学到什么?Python3的所有常用语法面向对象编程思维运用模块进行编程游戏编程计算机仿真从IDLE启动PythonIDLE是一个PythonShell,shell的意思就是“外壳”,基本上来说,就是一..
分类:
编程语言 时间:
2017-03-10 11:19:07
阅读次数:
178
第一个python程序python3.0打影helloworld”python编辑器打印:print("helloworld!")建立hello.py打印:vihello.py#!/usr/bin/envpython#指定python解释器,env:代表获取系统环境变量print("helloworld!")python2.7版本:print"helloworld!"给予脚本执行权限:chmod744hello.p..
分类:
编程语言 时间:
2017-03-10 00:52:42
阅读次数:
169
ipaddr 是 google出品的非常优秀的IP地址处理库,但pypi上的安装包只支持python2,python3安装会报错。修改了不支持python3的几个地方1、去掉Python2的L长整形标记;2、去掉long类型转换,更换成int2、修改has_key函数,用in进行逻辑判断单元测试全部... ...
分类:
编程语言 时间:
2017-03-09 20:55:54
阅读次数:
185
数据库定义:一些存储在硬盘上的数据文件 内存:计算机临时存储的一些数据 .net - SQL ServerPHP - MySqlJava - Oreacl 数据库中的数据类型:int decimal(长度,小数位数) bit - 布尔型 1 - true 0 - false datetime - 时 ...
分类:
数据库 时间:
2017-03-09 16:52:12
阅读次数:
223
1、获取当前时间 string strCurrentDate=DateTime.Now.ToString(); //2017/03/09 12:48:45 如果想要得到某种格式得日期时间,则可以如下进行格式化 string strCurrentDate=DateTime.Now.ToString(" ...
通过动态视图的扩展事件来查看SELECT xed.value('@timestamp', 'datetime') as Creation_Date, xed.query('.') AS Extend_Event FROM ( SELECT CAST([target_data] AS XML) AS ...
分类:
数据库 时间:
2017-03-09 13:30:25
阅读次数:
286
Python3中的映射类型 1.目前只有一种标准的映射类型-字典dict 2.字典是可变对象,采用键值对的方式存储数据 3.字典的键必须是不可变类型的值(比如列表,字典等类型是不可以用作键),且不可重复(重复会覆盖) 4.字典的值则几乎是任意的值,且可以重复 5.浮点数虽然可以作为键,但强烈不推荐这 ...
分类:
编程语言 时间:
2017-03-09 12:52:21
阅读次数:
131
在工作中学习到的一种插件 上网查询之后发现 在bootstrap中的时间选择器有两种:dateTimePicker和dateRangePicker HTML <div id="reportrange" class="btn default" style="font-size:12px;"> <i c ...
分类:
其他好文 时间:
2017-03-08 19:27:06
阅读次数:
202