On 6月2日, 上午8时05分, Peter Otten <[EMAIL PROTECTED]> wrote:
> Aldarion wrote:
> > for the little script
> > #egg.py
> > import sys
> > for k,v in enumerate(sys.argv):
> > print k,v
>
> > it ignores the part after # on linux
> > below is the runni
for the little script
#egg.py
import sys
for k,v in enumerate(sys.argv):
print k,v
it ignores the part after # on linux
below is the running output on windows and linux. no clue here.
D:\python\note>egg.py #test
0 D:\python\note\egg.py
1 #test
D:\python\note>egg.py for bar #spam egg
0 D:\pyt
Thanks for the reply,I got it.
On 6 25 , 9 19 , Paul Rubin <http://[EMAIL PROTECTED]> wrote:
> Aldarion <[EMAIL PROTECTED]> writes:
> > how to sorted by summed itemgetter(1)?
> > maybe sorted(items,key = lambda x:sum(x[1]))
> > can't itemgetter be u
for example, let
from operator import itemgetter
items = [('a', [5, 2]), ('c', [1]), ('b', [6]), ('d', [7])]
sorted(items, key = itemgetter(1))
get this back:
[('c', [1]), ('a', [5, 2]), ('b', [6]), ('d', [7])]
but
sorted(items, key = sum(itemgetter(1)))
raise a errer:
'operator.itemgetter' obje
Stef Mientki wrote:
> What can do MatLab, that can't be done in Python (SciPy) ?
> (Ok I accept there's no SimuLink/PowerSim).
>
What about SVD(Singular value decomposition) for Sparse Matrix.
I can't find this in numpy/scipy, someone told me it's in matrix.
though I don't know how to get it in