Created
November 17, 2021 15:38
-
-
Save KrisYu/4e29af2a3be5a30df71bdc218cb6f12e to your computer and use it in GitHub Desktop.
read json file
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
def read_data_from_file( filename ): | |
with open(filename, 'r') as json_file: | |
data = json.load(json_file) | |
return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment