Last active
September 30, 2023 01:53
-
-
Save elephantatech/26377df1f56cdefd4d7bd31b3ea81b5c to your computer and use it in GitHub Desktop.
python basic script template to run with python3
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
def main(): | |
"""main function""" | |
env_vars = os.environ | |
for var, value in env_vars.items(): | |
print(f"{var}: {value}") | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment