![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 83
life_liver
这个作者很懒,什么都没留下…
展开
-
Python注意点
下面列出一些使用python时,容易忽略的问题:1、正则表达式匹配\simport restr='a b'match=re.search(r'\s*',str) #y与n之间有5个空格if match: print 'y',match.group(),'no'以上代码,输出结果是"y n",及y与n之间只有两个空格(这两个空格是因为print中的逗号产生的,正原创 2013-09-04 16:58:23 · 572 阅读 · 0 评论 -
从外向内的旋转数组输出
题目描述如下图: 解法一:使用一个二维数组存储结果二维数组,然后输出此二维数组。时间复杂度O(n*n),空间复杂度O(n*n),此解法的C++代码如下:#includeusing namespace std;int main(){ int side_long; //矩阵的边长 cout<<"please input the length of ed原创 2013-09-30 15:58:53 · 736 阅读 · 0 评论