What to pass when passing arguments where a list or tuple is required?
问题 Which of the following should I use and why? import numpy as np a = np.zeros([2, 3]) b = np.zeros((2, 3)) There are many cases where you can pass arguments in either way, I just wonder if one is more Pythonic or if there are other reasons where one should be preferred over the other. I looked at this question where people tried to explain the difference between a tuple and a list. That's not what I'm interested in, unless there are reasons I should care which I ignore of course! UPDATE: