Python kiểm tra xem ký tự có phải là int không

các str. phương thức isdigit trả về

x = input["Enter The character that you want to check for int:"]

if[ord[x] >= 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = 48 and ord[x] = '0' and x = 48 and ord[x] = 48 and ord[x] 

Chủ Đề