2018-11-01から1ヶ月間の記事一覧
rev_array = reversed([0,1,2]) print([ "abcde"[idx] for idx in rev_array ]) print([ "abcde"[idx] for idx in rev_array ]) 出力: ['c', 'b', 'a'][] リスト内包ではiteratorがリセットされないのか?
こんなモデルがあるらしい: https://casrai.org/credit/
rev_array = reversed([0,1,2]) print([ "abcde"[idx] for idx in rev_array ]) print([ "abcde"[idx] for idx in rev_array ]) 出力: ['c', 'b', 'a'][] リスト内包ではiteratorがリセットされないのか?
こんなモデルがあるらしい: https://casrai.org/credit/