下記のように何度もappendを書かずに書けるようです。
>>> v = []
>>> a = v.append
>>> a('aaa')
>>> a('bbb')
>>> v
['aaa', 'bbb']
Go to list of users who liked
More than 3 years have passed since last update.
下記のように何度もappendを書かずに書けるようです。
>>> v = []
>>> a = v.append
>>> a('aaa')
>>> a('bbb')
>>> v
['aaa', 'bbb']
Register as a new user and use Qiita more conveniently
Go to list of users who liked