执行下面 Python 代码,输入 1a2b3c4,输出的结果是?( )
s = input("请输入字符串:")count = 0for i in range(len(s) - 1): if s[i].isdigit() and s[i + 1].isalpha(): count += 1print(count)执行下面 Python 代码,输入 1a2b3c4,输出的结果是?( )
s = input("请输入字符串:")count = 0for i in range(len(s) - 1): if s[i].isdigit() and s[i + 1].isalpha(): count += 1print(count)