示例#1
0
import humansizes

print(humansizes.approximate_size(80808080, True))

# function docstrings to see developer's documentation
print(humansizes.approximate_size.__doc__)
示例#2
0
import humansizes
print("Line 2", humansizes.approximate_size(80808080, True))
print("Line 3", humansizes.approximate_size.__doc__)
示例#3
0
# Syntax for importing modules
import humansizes

# Print the __name__ prop of the imported module
print(humansizes.__name__)

# Print the doc string of the imported module
print(humansizes.__name__.__doc__)

# Execute methods from the module
print(humansizes.approximate_size(16384, False))
示例#4
0
import humansizes

# dev documentation of a def(function)
print(humansizes.approximate_size.__doc__)
# Accessing the def 'aproximate_size' from the humansizes module
print(humansizes.approximate_size(1024, True))