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 assert not 1 < 2 > 3
try: try:
eval("231231312312312312312312312312312312314354657553423345632") x = eval("231231312312312312312312312312312312314354657553423345632")
print("eval should fail with SyntaxError") print(f"eval should fail, but got {x!r}")
exit(1) exit(1)
except SyntaxError: except SyntaxError:
pass pass