A couple of things here;
Firstly you need to indent your if not i.isdigit()
block:
if not i.isdigit():
print("u must enter numbers only! "{}" is not a number!!!!!!!".format(i))
exit()
You will probably get an exception otherwise.
For your issue; it looks like you are setting the value of password = 1234
which is a integer. You can set this to password="1234"
or str(password)[0]
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…