+ 2
Import
Hi, I have a question. How can I get a list from which module which variable can be imported. How to remember this. Because python is having so many libraries and inside that so many variables are there. Please help me. I am really facing this issue and not being able to memorize.
2 Réponses
+ 7
https://docs.python.org/3/tutorial/modules.html
https://docs.python.org/3.6/library/index.html#library-index
You can use the dir() function to see what's in a module
https://code.sololearn.com/c5XZp2CNCWxK/?ref=app
https://code.sololearn.com/c071JeXy6LcW/?ref=app
+ 3
Don't try to memorize the entire standard library! That's insane. Just remember some modules that you really use a lot (e.g. socket, for me). To find a list of all the modules, their methods, variables, etc., see https://docs.python.org/3/library/index.html.