Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Comments/Python/comments-3.py
Normal file
17
Task/Comments/Python/comments-3.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env python
|
||||
# Example of using doc strings
|
||||
"""My Doc-string example"""
|
||||
|
||||
class Foo:
|
||||
'''Some documentation for the Foo class'''
|
||||
def __init__(self):
|
||||
"Foo's initialization method's documentation"
|
||||
|
||||
def bar():
|
||||
"""documentation for the bar function"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
print (__doc__)
|
||||
print (Foo.__doc__)
|
||||
print (Foo.__init__.__doc__)
|
||||
print (bar.__doc__)
|
||||
Loading…
Add table
Add a link
Reference in a new issue