[kimisyo@localhost work]$ pydoc3 test.py
No Python documentation found for 'test.py'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
Warum?
Gemäß der Befehlszeilenreferenz muss das Argument anstelle des Dateinamens den Modulnamen, den Paketnamen, die Klasse im Modul, das Modul im Paket usw. angeben.
pydoc3 <name> ...
Show text documentation on something. <name> may be the name of a
Python keyword, topic, function, module, or package, or a dotted
reference to a class or function within a module or module in a
package. If <name> contains a '/', it is used as the path to a
Python source file to document. If name is 'keywords', 'topics',
or 'modules', a listing of these things is displayed.
Dies löst
[kimisyo@localhost work]$ pydoc3 test
Recommended Posts