摘要:
abs (x )返回x 的绝对值;当x 是复数时,返回x 的模。没错,python内建支持复数,见下面的complex () 函数。 all (iterable )当iterable 里的每项都为真时,才返回真 any (iterable )只要iterable 里有一项为真,就返回真 basest 阅读全文
摘要:
一.字符串方法总结: 1.查找: find(rfind)、index(rindex)、count 2.变换: capitalize、expandtabs、swapcase、title、lower、upper、strip(rstrip/lstrip)(析取)、zfill 3.分行和折行: join、s 阅读全文