2012年9月19日

摘要: 一、安装下载、解压、运行 = OK 阅读全文
posted @ 2012-09-19 09:11 york_software123 阅读(81) 评论(0) 推荐(0)

2012年8月7日

摘要: import wxversionwxversion.select('2.8')import wxclass Frame(wx.Frame): passclass App(wx.App): def OnInit(self): self.frame = Frame(parent=None, title='Hello wxPython') self.frame.Show() self.SetTopWindow(self.frame) return Trueif __name__ == '__main__': app = App... 阅读全文
posted @ 2012-08-07 23:52 york_software123 阅读(160) 评论(0) 推荐(0)

2012年7月22日

摘要: show databases;use [database];show tabels; GRANT ALL ON database.* TO 'user' @'localhost' IDENTIFIED BY 'password';>mysql -h localhost -p -u user; 阅读全文
posted @ 2012-07-22 12:27 york_software123 阅读(139) 评论(0) 推荐(0)

2012年7月17日

摘要: import poplib, getpass, sysmailserver = 'pop.163.com' # ex: 'pop.rmi.net'mailuser = 'xxxxxx@163.com' # ex: 'lutz'mailpasswd = 'xxxxxx'print 'Connecting...'server = poplib.POP3(mailserver)server.user(mailuser) # connect, login to mail serverserver.pass_ 阅读全文
posted @ 2012-07-17 15:08 york_software123 阅读(307) 评论(0) 推荐(0)

2012年3月23日

摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywor 阅读全文
posted @ 2012-03-23 20:09 york_software123 阅读(128) 评论(0) 推荐(0)

2012年2月8日

摘要: Dictionary definitionDictionary<int, int> dictName = new Dictionary<int, int>();Find dataif (dictName.ContainsKey(KEY)) dictName[KEY] = dictName[KEY] + 1;else dictName.Add(KEY, VALUE);SortdictName = dictName.OrderBy(i => i.Key).ToDictionary(c => c.Key, c => c.Value);Printforeach 阅读全文
posted @ 2012-02-08 18:00 york_software123 阅读(151) 评论(0) 推荐(0)
摘要: 1 import os2 files = os.listdir("path")3 f = open("save the files.txt","a")4 for file in files:5 f.write("path\\"+file+"\n")6 f.close() 阅读全文
posted @ 2012-02-08 17:53 york_software123 阅读(258) 评论(0) 推荐(0)

2012年2月7日

摘要: Os Module1 >>> import os2 >>> os.getcwd()3 '/home/york/code/python'4 >>> os.chdir("..")5 >>> os.getcwd()6 '/home/york/code'7 >>> os.system("ls")8 bash mychat myunp python temp unpv12e unpv13e webShutil Module1 >>& 阅读全文
posted @ 2012-02-07 09:04 york_software123 阅读(205) 评论(0) 推荐(0)

2012年2月6日

摘要: define a classclass Hello: """Greeting Class""" def hello(self): return "hello!"using the class>>> from Hello import *>>> x = Hello()>>> x.hello()'hello!'define a simple class 2.01 class Hello:2 """Greeting Cla 阅读全文
posted @ 2012-02-06 22:31 york_software123 阅读(166) 评论(0) 推荐(0)
摘要: Exception Handling>>> while True:... try:... x = int(raw_input("Please enter a number: "))... break... except ValueError:... print "Oops! That was no valid number. Try again..."...raise error>>> try:... raise NameError('HiThere')... except NameError:... 阅读全文
posted @ 2012-02-06 17:51 york_software123 阅读(166) 评论(0) 推荐(0)

导航