Skip to content

Instantly share code, notes, and snippets.

@autf
Last active April 22, 2022 06:02
Show Gist options
  • Save autf/10507477dce0e3803d4e6a21a75fe3a0 to your computer and use it in GitHub Desktop.
Save autf/10507477dce0e3803d4e6a21a75fe3a0 to your computer and use it in GitHub Desktop.
import sys, itertools
for _, it in itertools.groupby(sorted(sys.stdlib_module_names), lambda s: s[0]):
for x in sorted(it): print(x)
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment