2017年11月23日
摘要: #!/usr/bin/python#coding=utf-8'''Created on 2017年11月23日 from home @author: James zhan ''' def counter(start_at=0): count=start_at while True: val=(yie 阅读全文
posted @ 2017-11-23 20:44 jamezhan 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python#coding=utf-8'''Created on 2017年11月2日 from homeN!=fun(n)=1*2*3 ... * n@author: James zhan ''' def fun(n): if n==0 or n==1: return 1 e 阅读全文
posted @ 2017-11-23 20:14 jamezhan 阅读(82) 评论(0) 推荐(0) 编辑
  2017年11月22日
摘要: #!/usr/bin/python#coding=utf-8'''Created on 2017年11月2日 from home @author: James zhan ''' from functools import partialimport Tkinter root=Tkinter.Tk() 阅读全文
posted @ 2017-11-22 22:04 jamezhan 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python#coding=utf-8'''Created on 2017年11月2日 from home @author: James zhan ''' print reduce(lambda x,y:x+y,range(5)) '''reduce函数运行操作步骤((((0+ 阅读全文
posted @ 2017-11-22 21:35 jamezhan 阅读(147) 评论(0) 推荐(0) 编辑
  2017年11月20日
摘要: ss搭建 阅读全文
posted @ 2017-11-20 21:31 jamezhan 阅读(254) 评论(0) 推荐(0) 编辑
  2017年10月29日
摘要: #!/usr/bin/python#coding=utf-8 import MySQLdb # 打开数据库连接db = MySQLdb.connect("192.168.1.250","root","123456","mydb" ) # 使用cursor()方法获取操作游标 cursor = db. 阅读全文
posted @ 2017-10-29 15:35 jamezhan 阅读(929) 评论(0) 推荐(0) 编辑
  2017年10月28日
摘要: #!/usr/bin/pythondef main () : print 'hello world'main () 阅读全文
posted @ 2017-10-28 22:07 jamezhan 阅读(199) 评论(0) 推荐(0) 编辑