上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: message="uvwxyz,df,df,df,df,df,df,dfabcd"for i in message: if i.isalpha() : if ord(i)<=ord('u'): print chr(ord(i)+5) else... 阅读全文
posted @ 2014-07-07 11:55 UCanBeFree 阅读(110) 评论(0) 推荐(0)
摘要: pass 阅读全文
posted @ 2014-07-07 11:54 UCanBeFree 阅读(168) 评论(0) 推荐(0)
摘要: 共享变量规则: 空闲让进,忙则等待,有限等待,让权等待。fork 进程: 1 #!/usr/bin/env python 2 #-*-coding:utf-8-*- 3 4 #fork:子进程和父进程之间的交互 5 #父进程可以检查子进程是否完成,但是无法知道其完成的进度。 6 7 impor... 阅读全文
posted @ 2014-06-30 15:04 UCanBeFree 阅读(155) 评论(0) 推荐(0)
摘要: python: 查看内存地址。1 a=12 print a3 #输出物理内存地址 4 print id(a) 5 #输出物理内存地址(十六进制)6 print hex(id(a))View Code内存基础(C语言):一个程序就是一个进程。堆、栈、全局/静态存储区和常量存储区。什么是常量,全局变量,... 阅读全文
posted @ 2014-06-28 21:36 UCanBeFree 阅读(186) 评论(0) 推荐(0)
摘要: #!/usr/bin/env pythonimport wxclass MainWindow(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, si... 阅读全文
posted @ 2014-06-28 18:40 UCanBeFree 阅读(187) 评论(0) 推荐(0)
摘要: 最简单的迭代器: 1 a=$i*3;20 $a->b=$i*4;21 $a->c=$i*5;22 $this->_items[]=$a;23 }24 }25 26 27 28 // ... 阅读全文
posted @ 2014-06-28 11:47 UCanBeFree 阅读(111) 评论(0) 推荐(0)
摘要: #!usr/bin/env python#-*-coding:utf-8-*-#复制文件import sysimport osimport tempfile'''注意区分 路径 目录和文件的区别。路径=目录 并 文件文件 是包含其路径的 分为 “绝对路径文件”,“相对路径文件”'''#得到执... 阅读全文
posted @ 2014-06-27 14:14 UCanBeFree 阅读(146) 评论(0) 推荐(0)
摘要: 1,得到 github托管代码 $ cd /var/py $ git clonehttps://github.com/timotheus/ebaysdk-python.git2, 安装 $exportebay_yaml='myebay.yaml' export加入临时变量。 env | gr... 阅读全文
posted @ 2014-06-23 10:46 UCanBeFree 阅读(309) 评论(0) 推荐(0)
摘要: * SetTitle( string title ) —— 设置窗口标题。只可用于框架和对话框。* SetToolTip( wx.ToolTip tip ) —— 为窗口添加提示。* SetSize( wx.Size size ) —— 设置窗口的尺寸。* SetPosition( wx.Point... 阅读全文
posted @ 2014-06-22 21:40 UCanBeFree 阅读(251) 评论(0) 推荐(0)
摘要: Tk():显示Label:文本标签,如何设置 背景颜色和字体,长度,宽度。 阅读全文
posted @ 2014-06-21 16:05 UCanBeFree 阅读(108) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页