You can use the with_iter()method of more_itertools to write as follows:
As I mentioned in the comment section, I am using
with_iter() to solve this problem with list compression.If you think about the intent of the question, there is no need to do so, and the code that v..snow, the questioner, wrote first, is the surest and easiest.
I felt that the example code was concise enough, but I would like to suggest two things
How to Run
ワイルド Wildcarding is not possible and can only be used if only the JSON file you want to load is stored in the directory.With this code, I think you can use glob...
© 2022 OneMinuteCode. All rights reserved.