python对文件的读写还是挺方便的,与linux shell的交互变量需要转换一下才能用,这比较头疼! 1 #coding=utf-8 2 #!/usr/bin/python 3 import os 4 import time 5 #python执行linux命令 6 os.system(':>....
分类:
编程语言 时间:
2015-01-13 12:02:00
阅读次数:
151
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 5 import pyodbc 6 7 8 class MSSQL: 9 """10 封装pyodbc11 """12 13 def __init__...
分类:
数据库 时间:
2015-01-13 10:14:53
阅读次数:
218
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/longest-palindromic-substring/Given a string S, find the ...
分类:
编程语言 时间:
2015-01-13 01:21:57
阅读次数:
285
追了10多年的火影完结了,就在来程序员的前一天夜里,我看完了最后一集。而在现实的世界中,我却要开始在“好程序员“特训营,四个月的生活。这个高精班真的是藏龙卧虎,作为初级”忍者“,我就像笨拙的鸣人,coding就像”影分身“,我无数次尝试,均已惨败告终,身边更有宇智..
分类:
其他好文 时间:
2015-01-12 19:30:16
阅读次数:
161
#coding=utf-8
import threading
# 创建全局ThreadLocal对象:
localVal = threading.local()
localVal.val = "Main-Thread"
def process_student():
print '%s (in %s)' % (localVal.val, threading.current_thread()....
分类:
编程语言 时间:
2015-01-12 16:29:12
阅读次数:
363
#coding=utf-8print "你好,世界"print 2**10var =1print var##x=input("x:")##y=input("y:")##print x*yprint 12+int('1')print str(12)+"1"seq="0123456789"print s...
分类:
编程语言 时间:
2015-01-12 16:10:26
阅读次数:
240
# coding=utf-import MySQLdb#查询数量 def Count(cur):count=cur.execute( 'select * from Student' )print 'there has %s rows record' % count#插入 def Insert(cur...
分类:
数据库 时间:
2015-01-12 14:22:58
阅读次数:
160
CODE:#!/usr/bin/python # -*- coding: utf-8 -*-'''Created on 2014-7-9@author: guaguastd@name: entities_frequency_map.py'''if __name__ == '__main__': .....
分类:
编程语言 时间:
2015-01-12 10:45:10
阅读次数:
195
step1:在coding上面创建一个项目myboke
step2:在git 命令台中进入项目的根目录下面,使用git init创建.git文件夹和.gitigonre文件,帮组本地与远程的链接
step3:使用git pull 同步项目上面的文件
step4: git add * 添加项目下面的所有文件
step5: git commit -m ‘备注’ 将文件添加在cache中并添加备...
分类:
Web程序 时间:
2015-01-12 09:30:07
阅读次数:
217
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/Given a st...
分类:
编程语言 时间:
2015-01-12 01:36:33
阅读次数:
255