[java] view plain copy //设置颜色 public void setColour(int color){ co = color; } //设置边框宽度 public void setBorderWidth(int width){ borderwidth = width; } [ ...
分类:
移动开发 时间:
2017-04-17 13:04:32
阅读次数:
251
第八章 标准库二 第二部分涵盖了很多更能满足专业开发者需求的高级模块。这些模块在小脚本中非常少出现。 8.1 输出格式化 Reprlib模块为大型的或深度嵌套的容器缩写显示提供了repr()函数的一个定制版本号。 >>> import reprlib >>> reprlib.repr(set(’su ...
分类:
编程语言 时间:
2017-04-17 11:57:33
阅读次数:
205
TouchableSpriteTest auto winSize = Director::getInstance()->getWinSize(); Point origin = Director::getInstance()->getVisibleOrigin(); auto containerFo ...
分类:
其他好文 时间:
2017-04-16 17:40:06
阅读次数:
254
接触一段pyth on,虽然不能熟练应用,但还是希望有所尝试。 ...
分类:
其他好文 时间:
2017-04-13 23:27:12
阅读次数:
227
常用的事件主要有: (1)单击事件:onclick。用户单击鼠标按键时产生的事件,同时。nclick指定的事件处理程序或代码将被调用执行. (2)改变事件:onchange。当text或textarea元素内的字符值改变或select表格选项状态改变时发生该事件。 (3)选中事件:onselect。 ...
分类:
编程语言 时间:
2017-04-11 13:12:13
阅读次数:
276
在 javascript 中,call 和 apply 都是为了改变某个函数运行时的上下文(context)而存在的,换句话说,就是为了改变函数体内部 this 的指向。 先来一个例子: 但是如果我们有一个对象banana= {color : "yellow"} ,我们不想对它重新定义 say 方法 ...
分类:
移动开发 时间:
2017-04-10 22:36:29
阅读次数:
282
Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new probl ...
分类:
其他好文 时间:
2017-04-10 21:31:43
阅读次数:
186
1.在 The standard flow中内容的高度可以support父元素的高度2.在 The standard flow中浮动的元素can not support父元素的高度 1.清除浮动的方式:给前面一个父元素设置高度notice:在企业开发中能不写就不写高度,这种方式用的很少 清除浮动的第 ...
分类:
Web程序 时间:
2017-04-08 22:49:15
阅读次数:
359
Introduction Yum(Yellow dog Updater, Modified) is an automatic updater and package installer/remover for rpm systems. It automatically computes depend ...
分类:
其他好文 时间:
2017-04-08 18:44:59
阅读次数:
173
简单分析yum的用法。 1:yum 是什么? 英文全称为 yellow dog update modify. 直译过来肯定是不对的。大体的意思为程序包管理。 2:yum有什么用? yum 的用处可就大了。 是一种能帮助我们管理程序包的工具。正是因为这个工具,让我们安装,卸载程序包时,只要执行一个命令 ...
分类:
其他好文 时间:
2017-04-07 20:18:07
阅读次数:
174