文章目录
int()函数将字符串转换成整数类型
示例1:
输入: odd_digits = '21551111'
输出: sum_of_odd_digits = 17
python
for digit in odd_digits:
print(digit)
sum_of_odd_digits += digit