List replication operator

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri May 25 02:45:51 EDT 2018


On 2018年5月25日 02:45:38 +0000, Paul wrote:
> how often would people here have needed this new operator, if it had
> existed?

It is common enough that it is a FAQ on the Python website.
The list * operator isn't the most heavily used operator, but it does get 
used a bit. It comes up quite frequently in tutorials, Stackoverflow, etc.
https://www.google.com/search?q=python+multidimensional+list
-- 
Steve


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /