Update 01_int.py

This commit is contained in:
blueloveTH 2024-03-04 17:07:32 +08:00
parent f95bdd45ac
commit d4cf8b8c03

View File

@ -126,8 +126,8 @@ except ZeroDivisionError:
assert not 1 < 2 > 3
try:
eval("231231312312312312312312312312312312314354657553423345632")
print("eval should fail with SyntaxError")
x = eval("231231312312312312312312312312312312314354657553423345632")
print(f"eval should fail, but got {x!r}")
exit(1)
except SyntaxError:
pass