定義一個函數avg,它可以接受0到任意多個參數(和print函數相似)。avg函數的功能為求其參數的平均值。注意,當參數個數為零時,會出現被除數為零的錯誤,會導致程序崩潰,所以請使用try和except,避免程序崩潰,並使avg返回的平均值也為零。比如:

(1) Python calls c++ code guide to compiling from c++ shared link library to Python calls
1、 Preface 2、 Introduce 3、 Env
Python analyzes 90000 pieces of data to tell you who is the absolute C in the Avengers alliance!
author | Luo Zhao Cheng Coord