returnではなくexitを使うようです。
n = 1
if n == 1:
print(n)
exit()
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
returnではなくexitを使うようです。
n = 1
if n == 1:
print(n)
exit()
Register as a new user and use Qiita more conveniently
Go to list of users who liked