37,719
社区成员
发帖
与我相关
我的任务
分享
>>> help(open)
Help on built-in function open in module __builtin__:
open(...)
open(name[, mode[, buffering]]) -> file object
Open a file using the file() type, returns a file object. This is the
preferred way to open a file. See file.__doc__ for further information.
>>> help(os)
Help on module os:[About 1242 more lines. Double-click to unfold]
>>> a = "a string"
>>> help(a)
no Python documentation found for 'a string'
>>> help(a.endswith)
Help on built-in function endswith:
endswith(...)
S.endswith(suffix[, start[, end]]) -> bool
Return True if S ends with the specified suffix, False otherwise.
With optional start, test S beginning at that position.
With optional end, stop comparing S at that position.
suffix can also be a tuple of strings to try.