题解 | #提取数字电话#

提取数字电话

https://www.nowcoder.com/practice/6e25b95632e6433db4b5053f91138cb5

strs = input()
tiqu = list()
for i in strs:
    if(i == '0' or i == '1' or i == '2' or i == '3' or i == '4' or i == '5' or i == '6' or i == '7' or i == '8' or i == '9'):
        tiqu.append(i)
    else:
        continue

for i in tiqu:
    print(i,end='')

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务