str=input下输入的东西怎么赋值给s

img

就是如图怎么引入s,让s成为输入的字符 或者这个代码到底要怎么写


strs = input('请输入一行字符')
chi = alp = num = sna = oth = 0
for s in strs:
    if chr(0x4e00) <= s <= chr(0x9fa5):
        chi += 1
    elif 'A' <= s <= 'z':
        alp += 1
    elif '0' <= s <= '9':
        num += 1
    elif s == ' ':
        spa += 1
    else:
        oth += 1
print('...')

sstr = input()
for s in range(len(sstr)):
while.....
应该是这样的,如有用请采纳