Created
April 10, 2023 14:01
-
-
Save Mufanc/1c87e7c4cee4edd357c5596d7bd8c044 to your computer and use it in GitHub Desktop.
「机器学习」课程实训自动 AC 机
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from os import path | |
for info in inspect.stack(): | |
if path.split(info.filename)[1] != 'main.py': | |
continue | |
print(''.join(info.frame.f_globals['hash_name'])) | |
exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment