0
0

More than 1 year has passed since last update.

二次元配列内の文字列を数値に変換

Posted at
#map関数でリストの要素を数字に変換する
split_input_line = [['16', '19'], ['14', '17']]
for i in range(len(split_input_line)):
    split_input_line[i] = list(map(int, split_input_line[i]))
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0