1,重写PYTHON的代码(支持一切无重启在线更新,可惜我那个RUBY版哈)2,用FLASK写了WEB UI。(JQUERY实时输出执行过程)3,未完事项(加强的用户认证,BOOTSTRAP结成,支持JAVA打包。。。。)#!/usr/bin/env python# -*- coding: utf-...
分类:
其他好文 时间:
2015-04-24 18:37:07
阅读次数:
185
Key-Value Coding (KVC)Key-Value Coding (KVC)KVC,即是指 NSKeyValueCoding,一个非正式的 Protocol,提供一种机制来间接访问对象的属性。KVO 就是基于 KVC 实现的关键技术之一。一个对象拥有某些属性。比如说,一个 Person ...
分类:
其他好文 时间:
2015-04-24 14:10:34
阅读次数:
173
#!/usr/bin/env python
#coding=utf-8
import socket
def convert_integer():
data=1234
#32-bit
print "Original: %s => Long host byte order: %s, Network byte order: %s" %(data,socket.ntohl(data),so...
分类:
其他好文 时间:
2015-04-24 12:35:13
阅读次数:
209
网上好多抓取贴吧的小爬虫都失效了,原因是百度贴吧的编码格式变了,或者是html代码变了,像这种简单的读取源代码的爬虫,只要网页源代码改变之后就得重新修改。
请诸位大牛指点。# -*- coding:utf8 -*-
"""
程序就是读取网页的源代码,如果想获取相应的内容就找到其特定的格式,再利用正则表达式来获取。
"""
import string
import urllib2
import r...
分类:
编程语言 时间:
2015-04-24 09:06:46
阅读次数:
177
趁公司目前iOS整个没人管理,我折腾一下调试工具,刚好nordic也有参考demo。然后作为helloworld级别的我。。。 就直接down下来,结果,还不错,不像oschina.net和coding.net的客户端,基本上没有用到pods,所以就直接编译成功了。然后在模拟器上跑一下,ok 没问题...
分类:
移动开发 时间:
2015-04-24 06:41:36
阅读次数:
145
Features: Coding:?HTML5, CSS3, Semantic Code, jQuery,?Responsive Gallery Script: Accordion, Carousel, Slider Modules: Account, Affiliate, Banner, Bestsellers, Carousel, Category, Featured, Google...
分类:
其他好文 时间:
2015-04-23 20:05:43
阅读次数:
200
先看代码:
代码一:
#!/usr/bin/python
#coding:utf8
x = 20
def test():
print 'x= ',x
test()
代码一执行结果:
x = 20
我们在代码一的基础上稍加修改
代码二:
x = 20
def test():
print 'x= ',x
x = 2
print 'change x to ',x
test...
分类:
编程语言 时间:
2015-04-23 17:35:39
阅读次数:
542
刚好做运维平台,领导也有个要求是实时的查看,任意一台主机的端口开启状态,实际上我已经做了脚本发邮件每天diff的功能,但是为了方便展示还是写了这个脚本:脚本内容:[root@mailpython]#cattest1.py
#coding=utf-8
#!/usr/bin/python
importstring
importcommands
defgetCo..
分类:
编程语言 时间:
2015-04-23 15:58:48
阅读次数:
171
转载地址:http://blog.csdn.net/gumanren/article/details/6129416代码如下: 1 # -*- coding: utf-8 -*- 2 import sys 3 import win32ui 4 import win32gui 5 from PyQ.....
分类:
编程语言 时间:
2015-04-23 15:34:36
阅读次数:
268
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 from __future__ import print_function 4 from __future__ import unicode_literals 5 from __fut...
分类:
其他好文 时间:
2015-04-23 15:32:25
阅读次数:
257