ss=input( )while ss =='':n=0for x in ss:if isalpha:n=n+1print('非英文字母的字符数量为:',n)ss=input( )
哈喽,把n=0放while外面,然后要if x.isalpha(),有用请点采纳哦