python * 的区别

>>> ['Spam']*5
['Spam', 'Spam', 'Spam', 'Spam', 'Spam']
>>> ['Spam'*5]
['SpamSpamSpamSpamSpam']
posted @ 2017-10-16 13:50  bingo彬哥  阅读(235)  评论(0编辑  收藏  举报
本站总访问量