一.已有字符串 s = "i,am,lilei",请用两种办法取出之间的“am”字符。 s[2:4]s[s.find("am"):s.find("am")+len("am")] 二.在python中,如何修改字符串? a = "abc"b = a.replace("b","a")a = b 三.bo ...
分类:
编程语言 时间:
2016-05-20 00:50:09
阅读次数:
278
Exploring Python Code Objects https://late.am/post/2012/03/26/exploring-python-code-objects.html Inspired by David Beazley's Keynote at PyCon, I've be ...
分类:
编程语言 时间:
2016-05-18 23:48:04
阅读次数:
242
【华为OJ】【算法总篇章】【华为OJ】【065-字符逆序】【工程下载】题目描述将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。
如:输入“I am a student”,输出“tneduts a ma I”。输入参数:
inputString:输入的字符串返回值:
输出转换好的逆序字符串
输入描述输入一个字符串,可以有空格
输出描述输出逆序的字符串
输入例子...
分类:
其他好文 时间:
2016-05-18 19:12:16
阅读次数:
118
git branch 查看本地所有分支git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支git branch -r 查看远程所有分支git commit -am "init" 提交并且加注释 git remote add origin git@ ...
分类:
其他好文 时间:
2016-05-18 12:30:00
阅读次数:
106
http://tonybai.com/2010/10/26/about-variables-related-to-building-in-makefile-am/ 关于Makefile.am中与Build相关的变量设置 今天尝试使用autoconf和automake重新构建一个遗留库的Build环境 ...
分类:
其他好文 时间:
2016-05-18 01:42:10
阅读次数:
898
题目链接: http://acm.xmu.edu.cn/JudgeOnline/problem.php?id=1597 题目大意: 求(am-bm, an-bn),结果取模1000000007,a,b互质(1<=b < a<= 1018,1<=m,n<=1018) 题目思路: 【数论】 gcd(am ...
分类:
其他好文 时间:
2016-05-17 11:09:28
阅读次数:
211
CRUD using MVC Web API and AngularJS In this article I am going to demonstrate about how can we create basic crud (create, read, update and delete) us ...
分类:
Web程序 时间:
2016-05-17 00:40:06
阅读次数:
300
w11d5 I am who I am, I do what I do. What's the meaning of this sentence above? It means to be the real you, and follow your heart. Everyone is differ ...
分类:
其他好文 时间:
2016-05-15 09:29:54
阅读次数:
196
Z shell’s (zsh) popularity has increased in the last years. I have not moved too zsh yet, but I am going to do that. zsh is not installed in Linux by ...
分类:
系统相关 时间:
2016-05-14 11:24:14
阅读次数:
284