-->
当前位置:首页 > 题库

PROGRAMMING:JMU Python string count the number of different characters

Luz5年前 (2021-05-10)题库418
Count the number of different characters on a line of string, and count and output the number of Chinese and English characters, spaces, numbers and other characters respectively.
###Input format:
One line string
###Output format:
Output * * Chinese and English characters, spaces, numbers, and other characters * * in turn.
**Note: * Chinese numeric characters, such as * * seven * *, are counted as Chinese and English characters, not numeric characters.
###Input example:
```in
Hi! The weather is good, 28 degrees, 28 degrees.
```
###Output example:
```out
10 3 2 3
```







answer:If there is no answer, please comment