What is the proper way to format a multi-line dict in Python?

后端 未结 7 1466
天命终不由人
天命终不由人 2020-11-29 16:19

In Python, I want to write a multi-line dict in my code. There are a couple of ways one could format it. Here are a few that I could think of:

  1. mydic         
    
    
            
7条回答
  •  [愿得一人]
    2020-11-29 16:42

    From my experience with tutorials, and other things number 2 always seems preferred, but it's a personal preference choice more than anything else.

提交回复
热议问题