Модуль Python CSV: пошаговое руководство

–ú–æ–¥—É–ª—å Python CSV –∏—Å–ø–æ–ª—å–∑—É–µ—Ç—Å—è –¥–ª—è –æ–±—Ä–∞–±–æ—Ç–∫–∏ —Ñ–∞–π–ª–æ–≤ CSV. –§–∞–π–ª—ã CSV –º–æ–≥—É—Ç —Å–æ–¥–µ—Ä–∂–∞—Ç—å –±–æ–ª—å—à–æ–π –æ–±—ä–µ–º –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏–∏, –∞ –º–æ–¥—É–ª—å CSV –ø–æ–∑–≤–æ–ª—è–µ—Ç Python —á–∏—Ç–∞—Ç—å –∏ –∑–∞–ø–∏—Å—ã–≤–∞—Ç—å –≤ —Ñ–∞–π–ª—ã CSV —Å –ø–æ–º–æ—â—å—é reader () –∏ writer () —Ñ—É–Ω–∫—Ü–∏–∏.

–ß—Ç–µ–Ω–∏–µ, –∑–∞–ø–∏—Å—å –∏ –æ–±—Ä–∞–±–æ—Ç–∫–∞ –¥–∞–Ω–Ω—ã—Ö - –≤–∞–∂–Ω–∞—è —á–∞—Å—Ç—å –ø—Ä–æ–≥—Ä–∞–º–º–∏—Ä–æ–≤–∞–Ω–∏—è. –ü–æ—ç—Ç–æ–º—É –º–æ–∂–µ—Ç –±—ã—Ç—å –ø–æ–ª–µ–∑–Ω–æ –∑–Ω–∞—Ç—å, –∫–∞–∫ –æ–±—Ä–∞–±–∞—Ç—ã–≤–∞—Ç—å —Ñ–∞–π–ª—ã –≤ Python, —á—Ç–æ–±—ã –≤—ã –º–æ–≥–ª–∏ —á–∏—Ç–∞—Ç—å –∏ –∑–∞–ø–∏—Å—ã–≤–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –∏–∑ –≤–Ω–µ—à–Ω–∏—Ö –∏—Å—Ç–æ—á–Ω–∏–∫–æ–≤.

–ù–∞–ø—Ä–∏–º–µ—Ä, –¥–æ–ø—É—Å—Ç–∏–º, –≤—ã —è–≤–ª—è–µ—Ç–µ—Å—å –≤–ª–∞–¥–µ–ª—å—Ü–µ–º –º–µ—Å—Ç–Ω–æ–≥–æ –º–∞–≥–∞–∑–∏–Ω–∞ –º–æ—Ä–æ–∂–µ–Ω–æ–≥–æ, –∫–æ—Ç–æ—Ä—ã–π —Ö–æ—á–µ—Ç –±–æ–ª—å—à–µ —É–∑–Ω–∞—Ç—å –æ —Ç–µ–Ω–¥–µ–Ω—Ü–∏—è—Ö –ø–æ–∫—É–ø–∞—Ç–µ–ª–µ–π. –í—ã –º–æ–∂–µ—Ç–µ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å Python –¥–ª—è –∞–Ω–∞–ª–∏–∑–∞ –¥–∞–Ω–Ω—ã—Ö, —Å–æ–±—Ä–∞–Ω–Ω—ã—Ö –≤–∞–º–∏ –ø–æ –∑–∞–∫–∞–∑–∞–º –ø–æ–ª—å–∑–æ–≤–∞—Ç–µ–ª–µ–π, —á—Ç–æ–±—ã —É–∑–Ω–∞—Ç—å, –∫–∞–∫–∏–µ –≤–∫—É—Å—ã –º–æ—Ä–æ–∂–µ–Ω–æ–≥–æ –ø–æ–ø—É–ª—è—Ä–Ω—ã, —Å–∫–æ–ª—å–∫–æ –ª—é–¥–∏ —Ç—Ä–∞—Ç—è—Ç –Ω–∞ —ç—Ç–∏ –≤–∫—É—Å—ã –∏ –º–Ω–æ–≥–æ–µ –¥—Ä—É–≥–æ–µ.

–ó–¥–µ—Å—å –Ω–∞—Ö–æ–¥–∏—Ç—Å—è CSV-—Ñ–∞–π–ª Python. –≤—Ö–æ–¥–∏—Ç –º–æ–¥—É–ª—å. CSV-—Ñ–∞–π–ª—ã –∏—Å–ø–æ–ª—å–∑—É—é—Ç—Å—è –¥–ª—è —Ö—Ä–∞–Ω–µ–Ω–∏—è –±–æ–ª—å—à–æ–≥–æ –∫–æ–ª–∏—á–µ—Å—Ç–≤–∞ –¥–∞–Ω–Ω—ã—Ö, –∞ CSV-–º–æ–¥—É–ª—å –ø–æ–∑–≤–æ–ª—è–µ—Ç –≤–∞–º –∞–Ω–∞–ª–∏–∑–∏—Ä–æ–≤–∞—Ç—å —ç—Ç–∏ —Ñ–∞–π–ª—ã –≤ Python. –í —ç—Ç–æ–º —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–µ –º—ã —Å–æ–±–∏—Ä–∞–µ–º—Å—è –∏–∑—É—á–∏—Ç—å, –∫–∞–∫ —á–∏—Ç–∞—Ç—å –∏ –∑–∞–ø–∏—Å—ã–≤–∞—Ç—å –≤ —Ñ–∞–π–ª—ã CSV —Å –ø–æ–º–æ—â—å—é –º–æ–¥—É–ª—è CSV Python.

–û–±–Ω–æ–≤–ª–µ–Ω–∏–µ CSV

–ö–æ–≥–¥–∞ –≤—ã —Ä–∞–±–æ—Ç–∞–µ—Ç–µ —Å –¥–∞–Ω–Ω—ã–º–∏, –≤—ã –º–æ–∂–µ—Ç–µ —Å–ø–∏—Å–æ–∫ —ç—Ç–∏—Ö –¥–∞–Ω–Ω—ã—Ö, —Ä–∞–∑–¥–µ–ª–µ–Ω–Ω—ã—Ö –∑–∞–ø—è—Ç—ã–º–∏. –ù–∞–ø—Ä–∏–º–µ—Ä, —É –≤–∞—Å –º–æ–∂–µ—Ç –±—ã—Ç—å —Å–ø–∏—Å–æ–∫ –∑–∞–∫–∞–∑–æ–≤ –º–æ—Ä–æ–∂–µ–Ω–æ–≥–æ, –∑–Ω–∞—á–µ–Ω–∏—è –∫–æ—Ç–æ—Ä—ã—Ö —Ä–∞–∑–¥–µ–ª–µ–Ω—ã –∑–∞–ø—è—Ç—ã–º–∏. –≠—Ç–∞ —Å—Ç—Ä—É–∫—Ç—É—Ä–∞ –¥–∞–Ω–Ω—ã—Ö –Ω–∞–∑—ã–≤–∞–µ—Ç—Å—è –¥–∞–Ω–Ω—ã–º–∏ CSV –∏–ª–∏ –∑–Ω–∞—á–µ–Ω–∏—è–º–∏, —Ä–∞–∑–¥–µ–ª–µ–Ω–Ω—ã–º–∏ –∑–∞–ø—è—Ç—ã–º–∏.

–¢—Ä–∞–¥–∏—Ü–∏–æ–Ω–Ω—ã–µ —Ç–µ–∫—Å—Ç–æ–≤—ã–µ —Ñ–∞–π–ª—ã –º–æ–≥—É—Ç –±—ã—Ç—å –ø–æ–ª–µ–∑–Ω—ã, –∫–æ–≥–¥–∞ –≤–∞–º –Ω—É–∂–Ω–æ —Ö—Ä–∞–Ω–∏—Ç—å –¥–∞–Ω–Ω—ã–µ, –Ω–æ –∏—Ö –Ω–µ–ª—å–∑—è –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è —Ö—Ä–∞–Ω–µ–Ω–∏—è —Å—Ç—Ä—É–∫—Ç—É—Ä–∏—Ä–æ–≤–∞–Ω–Ω—ã—Ö –¥–∞–Ω–Ω—ã—Ö. –§–∞–π–ª—ã CSV, —Å –¥—Ä—É–≥–æ–π —Å—Ç–æ—Ä–æ–Ω—ã, –ø–æ–∑–≤–æ–ª—è—é—Ç —Ö—Ä–∞–Ω–∏—Ç—å —Å—Ç—Ä—É–∫—Ç—É—Ä–∏—Ä–æ–≤–∞–Ω–Ω—ã–µ –¥–∞–Ω–Ω—ã–µ –≤ —Ñ–æ—Ä–º–∞—Ç–µ —Ç–∞–±–ª–∏—Ü—ã, –Ω–∞ –∫–æ—Ç–æ—Ä—É—é –≤—ã –º–æ–∂–µ—Ç–µ —Å—Å—ã–ª–∞—Ç—å—Å—è –≤ —Å–≤–æ–µ–º –∫–æ–¥–µ, –ø–æ–¥–æ–±–Ω–æ —Ç–æ–º—É, –∫–∞–∫ —ç–ª–µ–∫—Ç—Ä–æ–Ω–Ω—ã–µ —Ç–∞–±–ª–∏—Ü—ã –∏ –±–∞–∑—ã –¥–∞–Ω–Ω—ã—Ö –ø–æ–∑–≤–æ–ª—è—é—Ç —Ö—Ä–∞–Ω–∏—Ç—å —Å—Ç—Ä—É–∫—Ç—É—Ä–∏—Ä–æ–≤–∞–Ω–Ω—ã–µ –¥–∞–Ω–Ω—ã–µ. –ù–∞–ø—Ä–∏–º–µ—Ä, —É –≤–∞—Å –º–æ–∂–µ—Ç –±—ã—Ç—å —Ñ–∞–π–ª CSV, –≤ –∫–æ—Ç–æ—Ä–æ–º —Ö—Ä–∞–Ω—è—Ç—Å—è –≤–∫—É—Å—ã –º–æ—Ä–æ–∂–µ–Ω–æ–≥–æ –∏–ª–∏ –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏—è –æ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞—Ö.

–í–æ—Ç –ø—Ä–∏–º–µ—Ä —Ñ–∞–π–ª–∞ CSV:

–í —ç—Ç–æ–º —Ñ–∞–π–ª–µ —Ö—Ä–∞–Ω—è—Ç—Å—è —Ç—Ä–∏ —ç–ª–µ–º–µ–Ω—Ç–∞: –Ω–∞–∑–≤–∞–Ω–∏–µ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞, –µ–≥–æ –∞–¥—Ä–µ—Å –∏ –ø—Ä–æ–¥—É–∫—Ç, –∫–æ—Ç–æ—Ä—ã–º –æ–Ω–∏ –ø–æ—Å—Ç–∞–≤–ª—è—é—Ç –Ω–∞—à—É –∫–æ–º–ø–∞–Ω–∏—é. –í –Ω–∞—à–µ–º —Ñ–∞–π–ª–µ —Ç–∞–∫–∂–µ —Ö—Ä–∞–Ω—è—Ç—Å—è –¥–≤–µ —Å—Ç—Ä–æ–∫–∏ –¥–∞–Ω–Ω—ã—Ö: –æ–¥–Ω–∞ –¥–ª—è Hendersons Creamery, –∞ –¥—Ä—É–≥–∞—è - –¥–ª—è Peterson Chocolate.

81% —É—á–∞—Å—Ç–Ω–∏–∫–æ–≤ –∑–∞—è–≤–∏–ª–∏, —á—Ç–æ –æ–Ω–∏ –ø–æ—á—É–≤—Å—Ç–≤–æ–≤–∞–ª–∏ —Å–µ–±—è –±–æ–ª–µ–µ —É–≤–µ—Ä–µ–Ω–Ω—ã–º–∏ –≤ —Å–≤–æ–∏—Ö –ø–µ—Ä—Å–ø–µ–∫—Ç–∏–≤–∞—Ö —Ç—Ä—É–¥–æ—É—Å—Ç—Ä–æ–π—Å—Ç–≤–∞ –ø–æ—Å–ª–µ –ø–æ—Å–µ—â–µ–Ω–∏—è —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è. –ù–∞–π–¥–∏—Ç–µ –ø–æ–¥—Ö–æ–¥ –∫ —É—á–µ–±–Ω–æ–º—É –ª–∞–≥–µ—Ä—é —Å–µ–≥–æ–¥–Ω—è.

–°—Ä–µ–¥–Ω–∏–π –≤—ã–ø—É—Å–∫–Ω–∏–∫ —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è –ø–æ—Ç—Ä–∞—Ç–∏–ª –º–µ–Ω–µ–µ —à–µ—Å—Ç–∏ –º–µ—Å—è—Ü–µ–≤ –Ω–∞ —Å–º–µ–Ω—É –∫–∞—Ä—å–µ—Ä—ã, –æ—Ç –Ω–∞—á–∞–ª–∞ —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è –¥–æ –ø–æ–∏—Å–∫–∞ —Å–≤–æ–µ–π –ø–µ—Ä–≤–æ–π —Ä–∞–±–æ—Ç—ã.

–ü–æ—Ç–æ–º—É —á—Ç–æ –Ω–∞—à–∏ –¥–∞–Ω–Ω—ã–µ —Å—Ç—Ä—É–∫—Ç—É—Ä–∏—Ä–æ–≤–∞–Ω—ã –≤ —Ñ–∞–π–ª CSV, –º—ã –º–æ–∂–µ–º –ø—Ä–æ–∞–Ω–∞–ª–∏–∑–∏—Ä–æ–≤–∞—Ç—å –µ–≥–æ —Å –ø–æ–º–æ—â—å—é –ø—Ä–æ–≥—Ä–∞–º–º—ã Python –∏ –ø–æ–ª—É—á–∏—Ç—å –¥–∞–Ω–Ω—ã–µ –∏–∑ –æ—Ç–¥–µ–ª—å–Ω—ã—Ö —Å—Ç–æ–ª–±—Ü–æ–≤ –∏–ª–∏ —Å—Ç—Ä–æ–∫.

–ú–æ–¥—É–ª—å CSV Python

–ú–æ–¥—É–ª—å CSV Python –º–æ–∂–Ω–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è –∞–Ω–∞–ª–∏–∑–∞ –¥–∞–Ω–Ω—ã—Ö CSV –≤ Python. –ò—Ç–∞–∫, –µ—Å–ª–∏ —É –≤–∞—Å –µ—Å—Ç—å CSV-—Ñ–∞–π–ª —Å –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏–µ–π –æ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞—Ö, –Ω–∞–ø—Ä–∏–º–µ—Ä, –≤—ã –º–æ–∂–µ—Ç–µ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –º–æ–¥—É–ª—å CSV –¥–ª—è –∏–∑–≤–ª–µ—á–µ–Ω–∏—è —ç—Ç–∏—Ö –¥–∞–Ω–Ω—ã—Ö –∏ —Ä–∞–±–æ—Ç—ã —Å –Ω–∏–º–∏.

CSV - —ç—Ç–æ –≤—Å—Ç—Ä–æ–µ–Ω–Ω—ã–π –º–æ–¥—É–ª—å Python, –Ω–æ –ø—Ä–µ–∂–¥–µ —á–µ–º –º—ã –Ω–∞—á–Ω–µ–º –µ–≥–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å, –º—ã –¥–æ–ª–∂–Ω—ã –∏–º–ø–æ—Ä—Ç–∏—Ä–æ–≤–∞—Ç—å CSV –≤ –Ω–∞—à—É –ø—Ä–æ–≥—Ä–∞–º–º—É. –ú—ã –º–æ–∂–µ–º —Å–¥–µ–ª–∞—Ç—å —ç—Ç–æ —Å –ø–æ–º–æ—â—å—é —Å–ª–µ–¥—É—é—â–µ–≥–æ –∫–æ–¥–∞:

–ß—Ç–µ–Ω–∏–µ —Ñ–∞–π–ª–æ–≤ CSV

–ü—Ä–µ–∂–¥–µ —á–µ–º –≤—ã —Å–º–æ–∂–µ—Ç–µ —Ä–∞–±–æ—Ç–∞—Ç—å —Å –¥–∞–Ω–Ω—ã–º–∏ –≤ —Ñ–∞–π–ª–µ CSV, –≤–∞–º –Ω–µ–æ–±—Ö–æ–¥–∏–º–æ –ø—Ä–æ—á–∏—Ç–∞—Ç—å —Ñ–∞–π–ª. –ú–æ–¥—É–ª—å CSV –ø–æ—Å—Ç–∞–≤–ª—è–µ—Ç—Å—è —Å –º–µ—Ç–æ–¥–æ–º –ø–æ–¥ –Ω–∞–∑–≤–∞–Ω–∏–µ–º reader (), –∫–æ—Ç–æ—Ä—ã–π –º–æ–∂–Ω–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è —á—Ç–µ–Ω–∏—è —Ñ–∞–π–ª–∞ CSV –≤ –Ω–∞—à—É –ø—Ä–æ–≥—Ä–∞–º–º—É. –§—É–Ω–∫—Ü–∏—è —á—Ç–µ–Ω–∏—è –±–µ—Ä–µ—Ç –∫–∞–∂–¥—É—é —Å—Ç—Ä–æ–∫—É —É–∫–∞–∑–∞–Ω–Ω–æ–≥–æ —Ñ–∞–π–ª–∞ –∏ –ø—Ä–µ–≤—Ä–∞—â–∞–µ—Ç –µ–µ –≤ —Å–ø–∏—Å–æ–∫ —Å—Ç–æ–ª–±—Ü–æ–≤.

–î–æ–ø—É—Å—Ç–∏–º, —É –Ω–∞—Å –µ—Å—Ç—å —Å–ø–∏—Å–æ–∫ –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤ –º–æ—Ä–æ–∂–µ–Ω–æ–≥–æ –≤ —Ñ–∞–π–ª–µ —Å –∏–º–µ–Ω–µ–º suppliers.csv, –∫–æ—Ç–æ—Ä—ã–π –º—ã —Ö–æ—Ç–∏–º –ø—Ä–æ—á–∏—Ç–∞—Ç—å –≤ –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º–µ. –°–æ–¥–µ—Ä–∂–∏–º–æ–µ —Ñ–∞–π–ª–∞ –≤—ã–≥–ª—è–¥–∏—Ç —Å–ª–µ–¥—É—é—â–∏–º –æ–±—Ä–∞–∑–æ–º:

–ú—ã –º–æ–∂–µ–º –ø–æ–ª—É—á–∏—Ç—å —ç—Ç–∏ –¥–∞–Ω–Ω—ã–µ, –∏—Å–ø–æ–ª—å–∑—É—è —Å–ª–µ–¥—É—é—â–∏–π –∫–æ–¥:

–ó–¥–µ—Å—å –º–Ω–æ–≥–æ —á–µ–≥–æ –ø—Ä–æ–∏—Å—Ö–æ–¥–∏—Ç, —Ç–∞–∫ —á—Ç–æ –¥–∞–≤–∞–π—Ç–µ —Ä–∞–∑–±–µ—Ä–µ–º—Å—è. –í –ø–µ—Ä–≤–æ–π —Å—Ç—Ä–æ–∫–µ –º—ã –∏–º–ø–æ—Ä—Ç–∏—Ä—É–µ–º –º–æ–¥—É–ª—å csv, –∫–æ—Ç–æ—Ä—ã–π –ø–æ–∑–≤–æ–ª—è–µ—Ç –Ω–∞–º –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –º–µ—Ç–æ–¥—ã CSV –≤ –Ω–∞—à–µ–º –∫–æ–¥–µ. –í —Å–ª–µ–¥—É—é—â–µ–π —Å—Ç—Ä–æ–∫–µ –º—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º –æ–ø–µ—Ä–∞—Ç–æ—Ä with, —á—Ç–æ–±—ã –æ—Ç–∫—Ä—ã—Ç—å –Ω–∞—à —Ñ–∞–π–ª, –∏ –∑–∞—è–≤–ª—è–µ–º, —á—Ç–æ –Ω–∞—à–µ–º—É —Ñ–∞–π–ª—É –¥–æ–ª–∂–Ω–æ –±—ã—Ç—å –ø—Ä–∏—Å–≤–æ–µ–Ω–æ –∑–Ω–∞—á–µ–Ω–∏–µ f.

–ó–∞—Ç–µ–º –º—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º contents = csv.reader (f) –¥–ª—è —á—Ç–µ–Ω–∏—è —Å–æ–¥–µ—Ä–∂–∏–º–æ–≥–æ –Ω–∞—à–µ–≥–æ —Ñ–∞–π–ª–∞, –∏—Å–ø–æ–ª—å–∑—É—è csv.reader () —Ñ—É–Ω–∫—Ü–∏—è. –ù–∞–∫–æ–Ω–µ—Ü, –Ω–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ —Å–æ–∑–¥–∞–µ—Ç —Ü–∏–∫–ª for, –∫–æ—Ç–æ—Ä—ã–π –ø–µ—Ä–µ–±–∏—Ä–∞–µ—Ç –∫–∞–∂–¥—É—é —Å—Ç—Ä–æ–∫—É –≤ CSV-—Ñ–∞–π–ª–µ –∏ –≤—ã–≤–æ–¥–∏—Ç –µ–≥–æ –≤ –æ–±–æ–ª–æ—á–∫—É Python.

–ù–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç —Å–ª–µ–¥—É—é—â–µ–µ:

–ö–∞–∫ –≤–∏–¥–∏—Ç–µ, –Ω–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –ø—Ä–æ—á–∏—Ç–∞–ª–∞ —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ –Ω–∞—à–µ–≥–æ —Ñ–∞–π–ª–∞ –∏ –ø—Ä–µ–≤—Ä–∞—Ç–∏–ª–∞ –∫–∞–∂–¥—É—é —Å—Ç—Ä–æ–∫—É –≤ –º–∞—Å—Å–∏–≤. –¢–µ–ø–µ—Ä—å, –∫–æ–≥–¥–∞ —É –Ω–∞—Å –µ—Å—Ç—å —ç—Ç–∏ –¥–∞–Ω–Ω—ã–µ, –º—ã –º–æ–∂–µ–º –º–∞–Ω–∏–ø—É–ª–∏—Ä–æ–≤–∞—Ç—å –∏–º–∏ –≤ –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º–µ.

–î–æ–ø—É—Å—Ç–∏–º, –º—ã –æ—Ç–ø—Ä–∞–≤–ª—è–µ–º —É–≤–µ–¥–æ–º–ª–µ–Ω–∏–µ –æ–± –æ—Ç–º–µ–Ω–µ –Ω–∞—à–∏—Ö –∑–∞–∫–∞–∑–æ–≤ –Ω–∞ —Å–ª–µ–¥—É—é—â—É—é –Ω–µ–¥–µ–ª—é, –ø–æ—Ç–æ–º—É —á—Ç–æ –º–∞–≥–∞–∑–∏–Ω –±—É–¥–µ—Ç –∑–∞–∫—Ä—ã—Ç. –ú—ã –º–æ–≥–ª–∏ –±—ã –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —ç—Ç–æ—Ç –∫–æ–¥, —á—Ç–æ–±—ã –ø–æ–ª—É—á–∏—Ç—å –∞–¥—Ä–µ—Å–∞ –∫–∞–∂–¥–æ–≥–æ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞ –∏ –æ—Ç–ø—Ä–∞–≤–∏—Ç—å –∏–º —É–≤–µ–¥–æ–º–ª–µ–Ω–∏–µ:

–ù–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç:

–í –Ω–∞—à–µ–º –∫–æ–¥–µ –º—ã —Å–æ–∑–¥–∞–µ–º —Ü–∏–∫–ª for, –∫–æ—Ç–æ—Ä—ã–π –ø—Ä–æ—Ö–æ–¥–∏—Ç —á–µ—Ä–µ–∑ –∫–∞–∂–¥—É—é —Å—Ç—Ä–æ–∫—É –≤ –Ω–∞—à–µ–º —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ –ø–µ—Ä–µ–º–µ–Ω–Ω–æ–π. –ó–∞—Ç–µ–º –º—ã —Ä–∞—Å–ø–µ—á–∞—Ç—ã–≤–∞–µ–º –∑–Ω–∞—á–µ–Ω–∏–µ –∫–∞–∂–¥–æ–≥–æ —ç–ª–µ–º–µ–Ω—Ç–∞ —Å –Ω–æ–º–µ—Ä–æ–º –∏–Ω–¥–µ–∫—Å–∞ 1, –∫–æ—Ç–æ—Ä—ã–π –≤ –¥–∞–Ω–Ω–æ–º —Å–ª—É—á–∞–µ —Å–æ–¥–µ—Ä–∂–∏—Ç –∞–¥—Ä–µ—Å –∫–∞–∂–¥–æ–≥–æ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞.

–¢–µ–ø–µ—Ä—å –¥–æ–ø—É—Å—Ç–∏–º, —á—Ç–æ –º—ã —Ö–æ—Ç–∏–º —Å—á–∏—Ç—ã–≤–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –∏–∑ –Ω–∞—à–µ–≥–æ —Ñ–∞–π–ª–∞ –≤ –º–∞—Å—Å–∏–≤. –≠—Ç–æ –æ–±—ã—á–Ω–∞—è —Ñ—É–Ω–∫—Ü–∏—è, –ø–æ—Ç–æ–º—É —á—Ç–æ –æ–Ω–∞ –ø–æ–∑–≤–æ–ª—è–µ—Ç –Ω–∞–º —Ö—Ä–∞–Ω–∏—Ç—å –Ω–∞—à–∏ –¥–∞–Ω–Ω—ã–µ –≤ –¥—Ä—É–≥–æ–º –ø–µ—Ä–µ–º–µ–Ω–Ω–∞—è –¥–ª—è –¥–∞–ª—å–Ω–µ–π—à–µ–≥–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏—è. –í–æ—Ç –∫–æ–¥, –∫–æ—Ç–æ—Ä—ã–π –º—ã –º–æ–≥–ª–∏ –±—ã –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è –≤—ã–ø–æ–ª–Ω–µ–Ω–∏—è —ç—Ç–æ–≥–æ –¥–µ–π—Å—Ç–≤–∏—è:

–î–∞–≤–∞–π—Ç–µ –æ–±—ä—è—Å–Ω–∏–º, —á—Ç–æ –ø—Ä–æ–∏—Å—Ö–æ–¥–∏—Ç –≤ o –≤–∞—à –∫–æ–¥. –ù–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –æ—Ç–∫—Ä—ã–≤–∞–µ—Ç —Ñ–∞–π–ª suppliers.csv, —á–∏—Ç–∞–µ—Ç —Ñ–∞–π–ª, –∑–∞—Ç–µ–º –¥–æ–±–∞–≤–ª—è–µ—Ç –∫–∞–∂–¥—É—é –∑–∞–ø–∏—Å—å –≤ –º–∞—Å—Å–∏–≤ suppliers, –∫–æ—Ç–æ—Ä—ã–π –º—ã –æ–±—ä—è–≤–∏–ª–∏ –≤ –Ω–∞—á–∞–ª–µ –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º—ã. –ó–∞—Ç–µ–º –Ω–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ —Ä–∞—Å–ø–µ—á–∞—Ç—ã–≤–∞–µ—Ç –ø–µ—Ä–µ–º–µ–Ω–Ω—É—é suppliers.

–ó–∞–ø–∏—Å—å –≤ —Ñ–∞–π–ª—ã CSV

–ú–æ–¥—É–ª—å CSV —Å–æ–¥–µ—Ä–∂–∏—Ç –º–µ—Ç–æ–¥, –∫–æ—Ç–æ—Ä—ã–π –º–æ–∂–Ω–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è –∑–∞–ø–∏—Å–∏ –¥–∞–Ω–Ω—ã—Ö –≤ —Ñ–∞–π–ª CSV: writer (). –§—É–Ω–∫—Ü–∏—è writer () –ø–æ–∑–≤–æ–ª—è–µ—Ç –Ω–∞–º –∑–∞–ø–∏—Å—ã–≤–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –≤ —É–∫–∞–∑–∞–Ω–Ω—ã–π —Ñ–∞–π–ª, —á—Ç–æ–±—ã –º—ã –º–æ–≥–ª–∏ —Å–æ—Ö—Ä–∞–Ω–∏—Ç—å –Ω–∞—à–∏ –¥–∞–Ω–Ω—ã–µ –¥–ª—è –¥–∞–ª—å–Ω–µ–π—à–µ–≥–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏—è.

–§—É–Ω–∫—Ü–∏—è writer () —Ñ—É–Ω–∫—Ü–∏—è —Å–æ–∑–¥–∞–µ—Ç –æ–±—ä–µ–∫—Ç, –∫–æ—Ç–æ—Ä—ã–π –º—ã –º–æ–∂–µ–º –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è –∑–∞–ø–∏—Å–∏ –≤ —Ñ–∞–π–ª. –ó–∞—Ç–µ–º, —á—Ç–æ–±—ã –∑–∞–ø–∏—Å–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –≤ –Ω–∞—à —Ñ–∞–π–ª, –º—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º –º–µ—Ç–æ–¥ writerow ().

"–ö–∞—Ä—å–µ—Ä–Ω–∞—è –∫–∞—Ä–º–∞ –≤–æ—à–ª–∞ –≤ –º–æ—é –∂–∏–∑–Ω—å —Ç–æ–≥–¥–∞, –∫–æ–≥–¥–∞ —è –±–æ–ª—å—à–µ –≤—Å–µ–≥–æ –≤ –Ω–µ–π –Ω—É–∂–¥–∞–ª–∞—Å—å, –∏ –±—ã—Å—Ç—Ä–æ –ø–æ–º–æ–≥–ª–∞ –º–Ω–µ –Ω–∞–π—Ç–∏ –ø–æ–¥—Ö–æ–¥. —É—á–µ–±–Ω—ã–π –ª–∞–≥–µ—Ä—å. –ß–µ—Ä–µ–∑ –¥–≤–∞ –º–µ—Å—è—Ü–∞ –ø–æ—Å–ª–µ –≤—ã–ø—É—Å–∫–∞ —è –Ω–∞—à–ª–∞ —Ä–∞–±–æ—Ç—É —Å–≤–æ–µ–π –º–µ—á—Ç—ã, –∫–æ—Ç–æ—Ä–∞—è —Å–æ–æ—Ç–≤–µ—Ç—Å—Ç–≤–æ–≤–∞–ª–∞ –º–æ–∏–º —Ü–µ–Ω–Ω–æ—Å—Ç—è–º –∏ —Ü–µ–ª—è–º –≤ –∂–∏–∑–Ω–∏! "

–í–µ–Ω–µ—Ä–∞, –∏–Ω–∂–µ–Ω–µ—Ä-–ø—Ä–æ–≥—Ä–∞–º–º–∏—Å—Ç –≤ Rockbot

–î–æ–ø—É—Å—Ç–∏–º, –º—ã –Ω–∞–ø–∏—Å–∞–ª–∏ –ø—Ä–æ–≥—Ä–∞–º–º—É, –∫–æ—Ç–æ—Ä–∞—è –¥–æ–±–∞–≤–ª—è–µ—Ç –Ω–æ–≤–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ –∫ –∫–∞–∂–¥–æ–π –∑–∞–ø–∏—Å–∏ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞. –≠—Ç–æ –∑–Ω–∞—á–µ–Ω–∏–µ –∏–º–µ–µ—Ç –∑–Ω–∞—á–µ–Ω–∏–µ –Ω–µ–∑–∞–≤–∏—Å–∏–º–æ –æ—Ç —Ç–æ–≥–æ, —è–≤–ª—è–µ—Ç—Å—è –ª–∏ –ø–æ—Å—Ç–∞–≤—â–∏–∫ –æ—Å–Ω–æ–≤–Ω—ã–º –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–º –æ–ø—Ä–µ–¥–µ–ª–µ–Ω–Ω–æ–≥–æ –ø—Ä–æ–¥—É–∫—Ç–∞. –í–æ—Ç –∫–æ–¥, –∫–æ—Ç–æ—Ä—ã–π –º—ã –º–æ–≥–ª–∏ –±—ã –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è –∑–∞–ø–∏—Å–∏ –∏–º–µ—é—â–∏—Ö—Å—è —É –Ω–∞—Å –¥–∞–Ω–Ω—ã—Ö –≤ —Ñ–∞–π–ª:

–ù–∞—á–∞–ª–æ –Ω–∞—à–µ–≥–æ –∫–æ–¥–∞ –æ—á–µ–Ω—å –ø–æ—Ö–æ–∂–µ –Ω–∞ –Ω–∞—à–∏ –ø—Ä–µ–¥—ã–¥—É—â–∏–µ –ø—Ä–∏–º–µ—Ä—ã; –æ–Ω —á–∏—Ç–∞–µ—Ç —Ñ–∞–π–ª suppliers.csv –∏ –ø–µ—Ä–µ–º–µ—â–∞–µ—Ç –µ–≥–æ —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ –≤ –º–∞—Å—Å–∏–≤ suppliers. –ï–¥–∏–Ω—Å—Ç–≤–µ–Ω–Ω–æ–µ –æ—Ç–ª–∏—á–∏–µ —Å–æ—Å—Ç–æ–∏—Ç –≤ —Ç–æ–º, —á—Ç–æ —Ñ—É–Ω–∫—Ü–∏—è —á—Ç–µ–Ω–∏—è –¥–æ–±–∞–≤–ª—è–µ—Ç –Ω–æ–≤–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ —Å –∏–º–µ–Ω–µ–º Yes –∫ –∫–∞–∂–¥–æ–º—É —ç–ª–µ–º–µ–Ω—Ç—É –≤ –Ω–∞—à–µ–º –º–∞—Å—Å–∏–≤–µ –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤. –≠—Ç–æ –∑–Ω–∞—á–µ–Ω–∏–µ —É–∫–∞–∑—ã–≤–∞–µ—Ç, —è–≤–ª—è–µ—Ç—Å—è –ª–∏ –ø–æ—Å—Ç–∞–≤—â–∏–∫ –æ—Å–Ω–æ–≤–Ω—ã–º –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–º –æ–ø—Ä–µ–¥–µ–ª–µ–Ω–Ω–æ–≥–æ –ø—Ä–æ–¥—É–∫—Ç–∞.

–ó–∞—Ç–µ–º –º—ã –æ—Ç–∫—Ä—ã–≤–∞–µ–º –Ω–æ–≤—ã–π —Ñ–∞–π–ª —Å –∏–º–µ–Ω–µ–º new_suppliers.csv –∏ –∑–∞–ø–∏—Å—ã–≤–∞–µ–º —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ –Ω–∞—à–µ–≥–æ < –∫–æ–¥> –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤ –≤ —ç—Ç–æ—Ç —Ñ–∞–π–ª. –ú—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º —Ñ—É–Ω–∫—Ü–∏—é writer (), —á—Ç–æ–±—ã –ø–æ–¥–≥–æ—Ç–æ–≤–∏—Ç—å –Ω–∞—à —Ñ–∞–π–ª –∫ –∑–∞–ø–∏—Å–∏.

–ó–∞—Ç–µ–º –º—ã —Å–æ–∑–¥–∞–µ–º —Ü–∏–∫–ª for, –∫–æ—Ç–æ—Ä—ã–π –ø—Ä–æ—Ö–æ–¥–∏—Ç —á–µ—Ä–µ–∑ –Ω–∞—à–∏—Ö –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤ –∏ –∏—Å–ø–æ–ª—å–∑—É–µ—Ç –º–µ—Ç–æ–¥ writerow () –¥–ª—è –¥–æ–±–∞–≤–ª–µ–Ω–∏—è –∫–∞–∂–¥–æ–≥–æ –ø–æ—Å—Ç–∞–≤—â–∏–∫–∞ –≤ —Ñ–∞–π–ª new_suppliers.csv.

–ù–∞—à –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç —Å–ª–µ–¥—É—é—â–µ–µ:

–û–¥–Ω–∞–∫–æ –Ω–µ—Ç –Ω–µ–æ–±—Ö–æ–¥–∏–º–æ—Å—Ç–∏ –ø–µ—Ä–µ–±–∏—Ä–∞—Ç—å –∫–∞–∂–¥—ã–π —ç–ª–µ–º–µ–Ω—Ç, –µ—Å–ª–∏ –º—ã —Ö–æ—Ç–∏–º –Ω–∞–ø–∏—Å–∞—Ç—å –≤—Å–µ—Ö –Ω–∞—à–∏—Ö –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤ –≤ —Ñ–∞–π–ª. –í–º–µ—Å—Ç–æ —ç—Ç–æ–≥–æ –º—ã –º–æ–∂–µ–º –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –º–µ—Ç–æ–¥ writerows () –¥–ª—è –∑–∞–ø–∏—Å–∏ –∫–∞–∂–¥–æ–≥–æ —ç–ª–µ–º–µ–Ω—Ç–∞ –≤ –ø–µ—Ä–µ–º–µ–Ω–Ω–æ–π suppliers –≤ –Ω–∞—à —Ñ–∞–π–ª new_suppliers.csv.

–í–æ—Ç –∫–æ–¥, –∫–æ—Ç–æ—Ä—ã–π –º—ã –±—É–¥–µ–º –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å:

–ù–∞—à –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç:

–¶–∏—Ç–∏—Ä–æ–≤–∞–Ω–∏–µ CSV-—Ñ–∞–π–ª–∞

–í –ø—Ä–∏–≤–µ–¥–µ–Ω–Ω–æ–º –≤—ã—à–µ –ø—Ä–∏–º–µ—Ä–µ –Ω–∞—à –∫–æ–¥ –∑–∞–ø–∏—Å–∞–ª –º–∞—Å—Å–∏–≤ suppliers –≤ –Ω–æ–≤—ã–π —Ñ–∞–π–ª –≤ —Ç–æ–º –≤–∏–¥–µ, –≤ –∫–∞–∫–æ–º –æ–Ω –ø–æ—è–≤–∏–ª—Å—è. & nbsp;

–û–¥–Ω–∞–∫–æ –º–æ–≥—É—Ç –±—ã—Ç—å —Å–ª—É—á–∞–∏, –∫–æ–≥–¥–∞ –≤—ã —Ö–æ—Ç–∏—Ç–µ, —á—Ç–æ–±—ã –∫–∞–∂–¥–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ –±—ã–ª–æ –∑–∞–ø–∏—Å–∞–Ω–æ –≤ —Ñ–∞–π–ª –≤ –∫–∞–≤—ã—á–∫–∞—Ö. –ù–∞–ø—Ä–∏–º–µ—Ä, —É –≤–∞—Å –º–æ–∂–µ—Ç –±—ã—Ç—å —Å–ø–∏—Å–æ–∫ –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤, –≤ –∫–æ—Ç–æ—Ä–æ–º –∏–º–µ–Ω–∞ –Ω–µ—Å–∫–æ–ª—å–∫–∏—Ö –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤ —Å–æ–¥–µ—Ä–∂–∞—Ç –∑–∞–ø—è—Ç—ã–µ, —á—Ç–æ –ø—Ä–∏–≤–µ–¥–µ—Ç –∫ –ø–æ–ª—É—á–µ–Ω–∏—é –Ω–∞—à–µ–≥–æ CSV f –§–∞–π–ª —Å—Ç–∞–Ω–æ–≤–∏—Ç—Å—è –∏—Å–∫–∞–∂–µ–Ω–Ω—ã–º.

–ú–æ–¥—É–ª—å CSV —Å–æ–¥–µ—Ä–∂–∏—Ç —á–µ—Ç—ã—Ä–µ —Ñ—É–Ω–∫—Ü–∏–∏ –∑–∞–∫–ª—é—á–µ–Ω–∏—è –≤ –∫–∞–≤—ã—á–∫–∏, –∫–æ—Ç–æ—Ä—ã–µ –º–æ–∂–Ω–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –¥–ª—è –∑–∞–∫–ª—é—á–µ–Ω–∏—è –∑–Ω–∞—á–µ–Ω–∏–π, –∫–æ—Ç–æ—Ä—ã–µ –¥–æ–ª–∂–Ω—ã –±—ã—Ç—å –∑–∞–ø–∏—Å–∞–Ω—ã –≤ –≤–∞—à —Ñ–∞–π–ª, –≤ –∫–∞–≤—ã—á–∫–∏, —á—Ç–æ–±—ã —ç—Ç–æ–≥–æ –Ω–µ –ø—Ä–æ–∏—Å—Ö–æ–¥–∏–ª–æ. –≠—Ç–∏ —Ñ—É–Ω–∫—Ü–∏–∏ –ø–µ—Ä–µ–¥–∞—é—Ç—Å—è –≤ –∫–∞—á–µ—Å—Ç–≤–µ –∞—Ä–≥—É–º–µ–Ω—Ç–∞ –º–µ—Ç–æ–¥—É csv.writer () –∏ –≤—ã–≥–ª—è–¥—è—Ç —Å–ª–µ–¥—É—é—â–∏–º –æ–±—Ä–∞–∑–æ–º:

–ò—Ç–∞–∫, –¥–æ–ø—É—Å—Ç–∏–º, –º—ã —Ö–æ—Ç–∏–º –∑–∞–∫–ª—é—á–∏—Ç—å –≤ –∫–∞–≤—ã—á–∫–∏ –∫–∞–∂–¥–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ –≤ –Ω–∞—à–µ–º –ø–æ—Å—Ç–∞–≤—â–∏–∫–æ–≤, –∫–æ–≥–¥–∞ –æ–Ω –∑–∞–ø–∏—Å–∞–Ω –≤ –Ω–∞—à —Ñ–∞–π–ª. –ú—ã –º–æ–≥–ª–∏ –±—ã –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —Å–ª–µ–¥—É—é—â–∏–π –∫–æ–¥:

–¢–µ–ø–µ—Ä—å, –∫–æ–≥–¥–∞ –º—ã –∑–∞–ø—É—Å–∫–∞–µ–º –Ω–∞—à—É –ø—Ä–æ–≥—Ä–∞–º–º—É, –Ω–∞—à —Ñ–∞–π–ª new_suppliers.csv —Å–æ–¥–µ—Ä–∂–∏—Ç —Å–ª–µ–¥—É—é—â–µ–µ :

–ó–∞–∫–ª—é—á–µ–Ω–∏–µ

–ß—Ç–µ–Ω–∏–µ –¥–∞–Ω–Ω—ã—Ö –∏–∑ —Ñ–∞–π–ª–æ–≤ –∏ –∑–∞–ø–∏—Å—å –¥–∞–Ω–Ω—ã—Ö –≤ —Ñ–∞–π–ª—ã –ø–æ–∑–≤–æ–ª—è–µ—Ç –∏–∑–≤–ª–µ–∫–∞—Ç—å –∏ —Å–æ—Ö—Ä–∞–Ω—è—Ç—å –¥–∞–Ω–Ω—ã–µ, —Å–≥–µ–Ω–µ—Ä–∏—Ä–æ–≤–∞–Ω–Ω—ã–µ –∏–∑ –≤–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º—ã Python. –ù–∞–ø—Ä–∏–º–µ—Ä, –µ—Å–ª–∏ —É –≤–∞—Å –µ—Å—Ç—å –º–µ–Ω—é –≤–∫—É—Å–æ–≤ –º–æ—Ä–æ–∂–µ–Ω–æ–≥–æ –∏ —Ü–µ–Ω, –∫–æ—Ç–æ—Ä—ã–µ –≤—ã —Ö–æ—Ç–∏—Ç–µ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –≤ –ø—Ä–æ–≥—Ä–∞–º–º–µ Python, –≤—ã –º–æ–∂–µ—Ç–µ —Å–æ—Ö—Ä–∞–Ω–∏—Ç—å –¥–∞–Ω–Ω—ã–µ –≤ —Ñ–∞–π–ª–µ.

–í —ç—Ç–æ–º —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–µ –º—ã –∏–∑—É—á–∏–ª–∏ –æ—Å–Ω–æ–≤—ã –º–æ–¥—É–ª—è Python CSV –∏ –∫–∞–∫ –æ–Ω —Ä–∞–±–æ—Ç–∞–µ—Ç. –ú—ã —Ç–∞–∫–∂–µ –æ–±—Å—É–¥–∏–ª–∏, –∫–∞–∫ —á–∏—Ç–∞—Ç—å –∏ –∑–∞–ø–∏—Å—ã–≤–∞—Ç—å —Ñ–∞–π–ª—ã —Å –ø–æ–º–æ—â—å—é –æ–±—ä–µ–∫—Ç–æ–≤ reader () –∏ writer ().

–¢–µ–ø–µ—Ä—å –≤—ã –≥–æ—Ç–æ–≤—ã —á–∏—Ç–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –∏–∑ –∏ –∑–∞–ø–∏—Å—ã–≤–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –≤ —Ñ–∞–π–ª—ã CSV, –∏—Å–ø–æ–ª—å–∑—É—è Python, –∫–∞–∫ –ø—Ä–æ—Ñ–µ—Å—Å–∏–æ–Ω–∞–ª!

–ö–æ–º–ø–∞–Ω–∏–∏ –ø–æ –≤—Å–µ–º—É –º–∏—Ä—É –Ω–∞–Ω–∏–º–∞—é—Ç –ª—é–¥–µ–π, –∫–æ—Ç–æ—Ä—ã–µ –∑–Ω–∞—é—Ç, –∫–∞–∫ –ø—Ä–æ–≥—Ä–∞–º–º–∏—Ä–æ–≤–∞—Ç—å –Ω–∞ Python. –ó–∞–≥—Ä—É–∑–∏—Ç–µ –±–µ—Å–ø–ª–∞—Ç–Ω–æ–µ –ø—Ä–∏–ª–æ–∂–µ–Ω–∏–µ Career Karma —Å–µ–≥–æ–¥–Ω—è, —á—Ç–æ–±—ã —É–∑–Ω–∞—Ç—å –±–æ–ª—å—à–µ –æ —Ç–æ–º, –∫–∞–∫ –∏–∑—É—á–µ–Ω–∏–µ Python –º–æ–∂–µ—Ç –ø–æ–º–æ—á—å –≤–∞–º —Å–¥–µ–ª–∞—Ç—å –∫–∞—Ä—å–µ—Ä—É –≤ —Å—Ñ–µ—Ä–µ —Ç–µ—Ö–Ω–æ–ª–æ–≥–∏–π!

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

News


Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method