ネストされたリストで:
x = [['0', '-', '3', '2'], ['-', '0', '-', '1', '3']]
ハイフンを削除するにはどうすればよいですか?
x = x.replace("-", "")
私に与えるAttributeError: 'list' object has no attribute 'replace'
、そして
print x.remove("-")
私に与えますValueError: list.remove(x): x not in list
。