2017-08-17から1日間の記事一覧
例を示す. Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> ls = [0, 0, 0] >>> def hoge(lst): ... lst[0] = 1 ... return lst ... >>> hoge…