这个是缩进问题,重新将行前面的空格删掉,换位tab
分类:
编程语言 时间:
2014-05-12 16:35:23
阅读次数:
383
模式1.def test1(*args): test3(*args)def
test2(**kargs): test3(**kargs)def test3(a, b):
print(a,b)test1(1,2)test2(a=1,b=2)模式2.def test4(a= ()): ...
分类:
编程语言 时间:
2014-05-12 16:31:15
阅读次数:
520
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-06 00:51:29
阅读次数:
353
加群看见的但是计算好慢,谁有更优的算法,麻烦说一下。factor=[]for x in
xrange(1, 987654//2+1): if 987654%x==0: factor.append(x)sum=0for y in xrange(1,
1000000000): ...
分类:
编程语言 时间:
2014-05-06 00:37:50
阅读次数:
851
1. 熟知主流硬件体系(x86, x64)2. 熟知 CPython
的具体实现,如若可能至少通读源码三遍以上3. 熟知每条 Python bytecode 如何被解释执行4. 熟知每条 Python 语句如何 compile 成
bytecode5. 熟知 Python 主要数据结构所采用的优化手...
分类:
其他好文 时间:
2014-05-06 00:18:16
阅读次数:
306
我猜~~~很多一开始学习python的同学们一定也遇到了这个问题,在安装setuptools时候会遇到UnicodeDecodeError的错误。我学的是3.x,但是周围的人都说2.7好,╮(╯▽╰)╭一开始我也不在乎,但是工作需要使用mongodb,但是它的包暂时只有2.7,我点点点点。无奈我也就...
分类:
编程语言 时间:
2014-05-02 16:24:03
阅读次数:
410
敌兵布阵Time Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
37773Accepted Submission(s): 15923Problem Desc...
分类:
其他好文 时间:
2014-05-02 14:22:52
阅读次数:
303
There is a war and it doesn't look very promising for your country. Now it's time to act. You have a commando squad at your disposal and planning an ambush on an important enemy camp located nearby. Y...
分类:
其他好文 时间:
2014-05-02 10:28:46
阅读次数:
424
Problem C: The Dragon of Loowater
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.
The shores of Rellau Creek in central Loowater had always been a prime...
分类:
其他好文 时间:
2014-05-02 10:07:09
阅读次数:
402
常用环境设置命令1.改变data输出形式set linesize 150 pagesize
100select * from emp;2.显示/关闭 当前时间set time on/off3.set sqlprompt
"session&get:"4. 设置sqlplus登录的username和in...
分类:
数据库 时间:
2014-05-02 05:40:40
阅读次数:
400