整数转换字符串用str()函数,这题建议用取模进行运算
str()函数格式如下:
num = 42 str = str(num)
total = sum( 10, 20 );print "Outside the function : ", total