//创建def sum_1n(n): j=0 for i in range(1,n): j+=i return j //调用 print(sum_1n())
def sum_1n(n): """函数帮助信息说明""" j=0 for i in range(1,n): j+=i return j print(sum_1n(20))