变量怎么变浮点数
def average(*args): x=sum(args) n=x/2 return n print average() print average(1, 2) print average(1, 2, 2, 3, 4) 怎么将变量x变为浮点数
def average(*args): x=sum(args) n=x/2 return n print average() print average(1, 2) print average(1, 2, 2, 3, 4) 怎么将变量x变为浮点数
2015-11-11
举报