判断一个 int 型数字 s[i] 是不是在 0 和 9 之间(可以是 0 和 9),判断条件可以写为 if (s[i] >= '0' && s[i] <= '9')。
int
s[i]
0
9
if (s[i] >= '0' && s[i] <= '9')
正确 √
错误 ×