全部博文(108)
发布时间:2014-08-05 23:33:39
Vim sometimes has trouble with files that have unusually long lines. It's a text editor, so it's designed for text files, with line lengths that are usually at most a few hundred characters wide.A database file may not contain many newline characters, so it could conceivably be one single 100 .........【阅读全文】
发布时间:2014-07-31 17:26:10
我的机器是虚拟机Ubuntu14 step 1:apt-get update step 2:点击(此处)折叠或打开root@localhost:~# apt-get install docker.ioReading package lists... DoneBuilding dependency treeReading state information... Done.........【阅读全文】
发布时间:2014-07-31 11:51:12
点击(此处)折叠或打开>>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcolm Reynolds")>>> m.groupdict(){'first_name': 'Malcolm', 'last_name': 'Reynolds'}>>>.........【阅读全文】
发布时间:2014-07-31 11:10:40
点击(此处)折叠或打开[root@cdn ~]# python -m timeit '"_".join(str(n) for n in range(100))'10000 loops, best of 3: 37.5 usec per loop[root@cdn ~]# python -m timeit '"_".join([str(n) for n in range(100)])'10000 loops, best of 3: 32.6 u.........【阅读全文】