码迷,mamicode.com
首页 >  
搜索关键字:zen coding    ( 13130个结果
python文件读写操作与linux shell变量命令交互执行
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
python访问MS SqlServer(通过pyodbc)
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
[LeetCode][Python]Longest Palindromic Substring
# -*- 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
Python中threading.local方法
#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
python基础
#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
Python操作MySQL
# 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
Python 对Twitter中指定话题的Tweet基本元素的频谱分析
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
coding上传项目的基本步骤
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
[LeetCode][Python]Longest Substring Without Repeating Characters
# -*- 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!