Python 2.7を使用して、特定のセルの値をどのように変更しますか?データベースを作成するのが最善の方法ですか?(「1ダース」を2回12に変更-「1ダース」が見つかるたびに12に置き換えられます)
入力:
['item', 'amount', 'size', 'price']
['apple', '1 dozen', '3', '8']
['cherry', '84', '100 g', '3.5']
['orange', '1 dozen', '3', '9']
必要な出力:
['item', 'amount', 'size', 'price']
['apple', '12', '3', '8']
['cherry', '84', '100 g', '3.5']
['orange', '12', '3', '9']