Why not
import string;help(string.title)
seems to work but
help(string.strip)
works great?
I get an error
Traceback (last last call):File "", line 1, in AttributeError: object 'module' does not have attribute 'title'
title- a method for type objects str, not a function in a module string. This means that you can do "foo".title()or str.title("foo"), but not string.title("foo").
title
str
string
"foo".title()
str.title("foo")
string.title("foo")
help(str.title)seems to be working fine.
help(str.title)
Source: https://habr.com/ru/post/1736594/More articles:How to make the automatic DIV height changeable even if the content is absolute? - cssHaving a different action for each button dynamically created in a loop - javaEnsuring that the WPF window is on top all the time, even when the user clicks on another application with maximum impact - winapiКак измерять производительность веб-приложения? - performanceHow to get two-way work binding for asp.net nested repeater controls - asp.netiPhone: one object, one theme - multithreadingHow can I indicate which type of relationship to use as a function of the current node at each step of the traversal with neo4j? - neo4j.NET Active Directory Expiration on Windows 2008 - c #Одновременные языки программирования для чата и подобных Twitter-приложений - scalaHow to use the built-in functions of V8 - c ++All Articles