45

Python函数基础 - 骏马金龙

 5 years ago
source link: https://www.cnblogs.com/f-ck-need-u/p/9932901.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
函数声明、调用、返回基础 Python中使用def关键字来声明函数,声明函数的格式为: 有3个需要注意的地方: 1. 函数名后面必须加冒号 2. 如果函数体和def不在同一行,则必须缩进 3. ret

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK