func_doc.py
来自「python简明教程源代码」· Python 代码 · 共 19 行
PY
19 行
# Filename : func_doc.py
def printMax(x,y):
'''Prints the maximum of two number.
The two values must be integers.'''
x = int(x) # convert to integers, if possible
y = int(y)
if x > y:
print x, 'is maximum'
else:
print y, 'is maximum'
printMax(3,5)
print printMax.__doc__
print '\n'
help(printMax)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?