Answers for "python get module name"

0

python get module name

import sys
print(sys.modules[__name__])
Posted by: Guest on September-03-2021
0

python get module name

def main():
    print('Running test...')
    ...

if __name__ == '__main__':
    main()
Posted by: Guest on February-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language