私信  •  关注

flytex

flytex 最近创建的主题
flytex 最近回复了
5 年前
回复了 flytex 创建的主题 » 在python中使用def

Pyhton强制执行严格的缩进,python函数中的所有thinhs都需要同样的缩进,只需将print('Hello')行的tabspace改为tabspace,或者如果遵循正确的样式指南4个空格。docstring还需要三个引号 """string""" ""string ""