#coding:utf-8import wxlabels='1 2 3 4 5 6 7 8 9 '.split()class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,'grid...
分类:
数据库 时间:
2015-01-26 22:32:25
阅读次数:
338
Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same value, because then they could just split the collection ...
分类:
其他好文 时间:
2015-01-26 17:08:53
阅读次数:
206
The Sultan's Successors
The Sultan of Nubia has no children, so she has decided that the country will be split into up to k separate parts on her death and each part will be inherited by...
分类:
其他好文 时间:
2015-01-26 17:04:34
阅读次数:
277
function changeFormElementStatus(tagNames) { var tagNameArr = tagNames.split(","); for (var j = 0; j
分类:
编程语言 时间:
2015-01-26 16:49:14
阅读次数:
128
在The FirstDay里面学习了列表的元组的使用,今天开始学习字符串的使用。字符串的使用主要要掌握,字符串的格式化(C语言中我们应该都知道,Python和C语言差别不大),字符串的基本操作(Join,Split,Replace等和.net里面的也有很多相似点) 一.字符串的基本操作 ...
分类:
编程语言 时间:
2015-01-26 13:16:11
阅读次数:
275
Visual Studio is being overly cautious. In debug mode, visual studio uses something called "Checked Iterators". Pointers are also iterators, but the c...
分类:
编程语言 时间:
2015-01-25 17:58:11
阅读次数:
448
1.使用逗号分割金额String.prototype.strReverse = function() { return this.split('').reverse().join('');}function amountSplit(amount) { return amount.toSt...
分类:
编程语言 时间:
2015-01-25 17:54:28
阅读次数:
142
昨天主要了解了下生成器,用文档测下lines:
def lines(file):
for line in file: yield line
yield '\n'
for i in lines(sys.stdin):
if i:
print i
print '---'
测试文档test_input.txt:
hello
how are you
how do you...
分类:
编程语言 时间:
2015-01-25 15:19:43
阅读次数:
206
// Populate the class2type mapjQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { class2typ...
分类:
Web程序 时间:
2015-01-24 13:04:35
阅读次数:
475
本文和大家重点讨论一下Perl split函数的用法,Perl中的一个非常有用的函数是Perl split函数-把字符串进行分割并把分割后的结果放入数组中。这个Perl split函数使用规则表达式(RE),如果未特定则工作在$_变量上。Perl split函数Perl中的一个非常有用的函数是Per...
分类:
其他好文 时间:
2015-01-24 00:15:03
阅读次数:
214