写了几行代码不能用 看见\a是蓝色的,原来是关键字,百度一下要用转义符在前面加\,再看说再前面加r或R 改了后好了。下面复制别人的 Python格式化字符串的替代符以及含义 Python的转义字符及其含义 如果在字符串中输出"\",需使用"\\" 生字符串 若要指明字符串中没有转义序列,可以在字符串 ...
分类:
编程语言 时间:
2017-08-04 18:17:05
阅读次数:
258
Tom has a meadow in his garden. He divides it into N * M squares. Initially all the squares were covered with grass. He mowed down the grass on some o ...
分类:
其他好文 时间:
2017-08-04 17:14:08
阅读次数:
169
1.cat (1)基本用法 (2)cat -s file(删除额外空白行) (3)cat -n lines.txt (显示行号) 2.录制并回放终端回话(script/scriptreplay) 3.文件查找与文件列表(find) (1)find base_path(顺着目录,向下查找) (2)fi ...
分类:
系统相关 时间:
2017-08-04 11:57:56
阅读次数:
197
这是我在简书的文章. http://www.jianshu.com/p/734962c9bbed $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split('\n').l ...
分类:
编程语言 时间:
2017-08-04 10:03:03
阅读次数:
171
JGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines. Half of these cities are rich in r ...
分类:
其他好文 时间:
2017-08-03 23:42:02
阅读次数:
233
命令如下: f = open("c:\\1.txt","r") lines = f.readlines()#读取全部内容 for line in lines print line 实例 如下: f = open("D:\\Python project\\Part 1\\script\\user.tx ...
分类:
其他好文 时间:
2017-08-03 23:41:07
阅读次数:
174
KK's Reconstruction Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 360 Accepted Submission(s): ...
分类:
其他好文 时间:
2017-08-03 22:10:33
阅读次数:
232
Balancing Act Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14247 Accepted: 6026 Description Consider a tree T with N (1 <= N <= 20,000) ...
分类:
其他好文 时间:
2017-08-03 16:53:39
阅读次数:
121
暂未更新。 $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split('\n').length; var $numbering = $('<ul/>').addClass ...
分类:
编程语言 时间:
2017-08-03 09:49:33
阅读次数:
125