str方法完全解析

str方法完全解析

來自專欄 Python教程

[__add__, __class__, __contains__, __delattr__, __dir__, __doc__, __eq__, __format__, __ge__, __getattribute__, __getitem__, __getnewargs__, __gt__, __hash__, __init__, __init_subclass__, __iter__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __new__, __reduce__, __reduce_ex__, __repr__, __rmod__, __rmul__, __setattr__, __sizeof__, __str__, __subclasshook__, capitalize, casefold, center, count, encode, endswith, expandtabs, find, format, format_map, index, isalnum, isalpha, isdecimal, isdigit, isidentifier, islower, isnumeric, isprintable, isspace, istitle, isupper, join, ljust, lower, lstrip, maketrans, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper,

zfill

zfill(...) method of builtins.str instance S.zfill(width) -> str Pad a numeric string S with zeros on the left, to fill a field of the specified width. The string S is never truncated.

upper

變成大寫

translate

推薦閱讀:

春天了,這10種花草別買,撿個枝葉插土裡,猛長一大盆...
熊爸爸 時逢秋暮露成霜 幾份凝結幾份陽
js中forEach,for in,for of循環的用法
Y2T47 區分o光e光、s光p光、TE模TM模
太陽能殺蟲燈出現自燃現象的原因有哪些

TAG:自然科學 | 數學 |