python中函数的定义: def test (x,y): "The function definitions" z = x**y return z """ def:定义函数的关键字 test:函数名 ():内可定义形参 z=x**y:函数功能实现代码块 return:运算结果返回 """ 一. 函数的特征 1. 当python中函数通过return语句返回多个值时,默认以元组方式打包后一次性返回. 2. 位置参数调用
Search GO 说明:输入题号直接进入相应题目,如需搜索含数字的题目,请在关键词前加单引号 Problem ID Title Source AC Submit Y 1000 A+B Problem 10983 18765 Y 1036 [ZJOI2008]树的统计Count 5293 13132 Y 1588 [HNOI2002]营业额统计 5056 13607 1001 [BeiJing2006]狼抓兔子 4526 18386 Y 2002 [Hnoi2010]Bounce 弹飞绵羊 43