![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
小方plus
这个作者很懒,什么都没留下…
展开
-
PTA python考试题
使用函数求特殊a串数列和def fn(m, n): sum=res=0 for i in range(1, n+1): sum=sum+m m=m*10 res=res+sum return res使用函数统计指定数字的个数def CountDigit(number,digit ): number=str(number)return number.count(str(digit))使用函数求素数和def isPr原创 2020-06-22 06:55:31 · 1792 阅读 · 0 评论 -
PTA考试题
使用函数求特殊a串数列和def fn(m, n): sum=res=0 for i in range(1, n+1): sum=sum+m m=m*10 res=res+sum return res使用函数统计指定数字的个数def CountDigit(number,digit ): number=str(number)return number.count(str(digit))使用函数求素数和def isPr原创 2020-06-21 22:45:40 · 2948 阅读 · 0 评论