发布网友 发布时间:2024-10-21 03:57
共4个回答
热心网友 时间:2024-10-23 02:57
str=input("请输入字符串:")
N = len(str)
list = []
for c in str:
list.append(c)
for i in range(0, N):
if list[i] >= '0' and list[i] <= '9':
list[i] = ''
str = ''.join(list)
print(str)
热心网友 时间:2024-10-23 03:01
str = '0123456789'
dic = {ord(i):None for i in str}
inputstr = input('input str:')
print(inputstr.translate(dic))
热心网友 时间:2024-10-23 03:04
import re热心网友 时间:2024-10-23 03:00