Tom数-题解(Python代码) 摘要:```python def calc(): while True: n = input() try: digitlist = …… 题解列表 2019年12月27日 0 点赞 0 评论 1140 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:# python3.6 ```python import math while(1): z,w,d,num=0,0,0,0 x=int(input()) x_s=str(x) …… 题解列表 2019年12月20日 0 点赞 0 评论 937 浏览 评分:0.0
Tom数-题解(Python代码) 摘要:python input的返回值是字符串,故直接求和即可。 ```python x=input() while x: print(sum([int(i) for i in x])) …… 题解列表 2019年09月07日 0 点赞 0 评论 1737 浏览 评分:9.2