+ 61
Found an easy method to list all public string methods.
Nothing exciting - but didnt know before. https://code.sololearn.com/cJLVkXZN1Vlw/#py
25 Antworten
+ 23
Yep, one of the quizzes asks about the dir() ;)
+ 13
yep thanks it is helpful
+ 9
@kuba never understood sense of question or even answer... those days are gone (-:
+ 8
Can someone explain? I don't quite understand.
+ 8
@akhil it is a simple filter for methods beginning with _ or __
+ 7
yes , nice logic there to list them alphabetically
+ 6
@blugon python modules and classes are organized in files(directories)
at a certain level filenames are the names of the methods of a class.
+ 5
@blugon thats it.
Additionally protected and private methods begin with _ respectiveky __
+ 4
Public string methods? Are there private string methods?
Are there int methods? Are there float methods?
Happy to meet you, Oma.
+ 4
@Tony
yes...there are private: all that beginning wirh __
yes... rhere are int change dir to int, float,....
if you need methods of itertools, first import itertools...
just play with the coding
+ 4
and if you substitute "a" with any num say 1 ,the output will have more functions including the public str
+ 3
привет
+ 3
@Lord awesome sorry dont know
+ 2
@Oma Falk so this is a thing to find the files that contains the modules / classes?
+ 2
OK thanks
+ 2
great!
+ 2
Useful...Buddy..
+ 1
is there no method in STR starting from 'a'
or this method does something else?
+ 1
перевод нужен
+ 1
Were iss cplusplus