def isNumberA(s: str) -> bool:
return s.isdecimal()
def isNumberB(s: str) -> bool:
return s != '' and all(48 <= c <= 57 for c in map(ord, s))
t=0
print("以下字元會出現不一樣的結果:")
for s in range(0, 65535):
if(isNumberA(chr(s))!=isNumberB(chr(s))):
t=t+1
print(chr(s))
print("總共",t,"個字元符合題目要求")