Monday 12 August 2019

idioms - Is there any reason to prefer dict() to {} in Python?

Is there any reason to prefer dict() to {} when initialising an empty dictionary in Python?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...