Python TypeError: нельзя использовать строковый шаблон для байтового объекта Решение

–í—ã –¥–æ–ª–∂–Ω—ã –ø—Ä–µ–¥–æ—Å—Ç–∞–≤–∏—Ç—å —Å—Ç—Ä–æ–∫—É –≤ –±–∏–±–ª–∏–æ—Ç–µ–∫—É re, –µ—Å–ª–∏ —Ö–æ—Ç–∏—Ç–µ –º–∞–Ω–∏–ø—É–ª–∏—Ä–æ–≤–∞—Ç—å –æ–±—ä–µ–∫—Ç–æ–º —Å –ø–æ–º–æ—â—å—é —Å—Ç—Ä–æ–∫–æ–≤–æ–≥–æ —à–∞–±–ª–æ–Ω–∞. –ï—Å–ª–∏ –≤—ã –ø–æ–ø—ã—Ç–∞–µ—Ç–µ—Å—å –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω –¥–ª—è –æ–±—ä–µ–∫—Ç–∞, –∫–æ—Ç–æ—Ä—ã–π —Ö—Ä–∞–Ω–∏—Ç—Å—è —Å –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏–µ–º " –±–∞–π—Ç–æ–≤ " —Ç–∏–ø–∞ –¥–∞–Ω–Ω—ã—Ö, –≤—ã —Å—Ç–æ–ª–∫–Ω–µ—Ç–µ—Å—å —Å –æ—à–∏–±–∫–æ–π " TypeError: –Ω–µ–≤–æ–∑–º–æ–∂–Ω–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω –¥–ª—è –±–∞–π—Ç–æ–≤–æ–≥–æ –æ–±—ä–µ–∫—Ç–∞ " –æ—à–∏–±–∫–∞.

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

TypeError: –Ω–µ–≤–æ–∑–º–æ–∂–Ω–æ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω –¥–ª—è –±–∞–π—Ç–æ–≤–æ–≥–æ –æ–±—ä–µ–∫—Ç–∞

–û–±—ä–µ–∫—Ç—ã Bytes —Å–æ–¥–µ—Ä–∂–∞—Ç –ø–æ—Å–ª–µ–¥–æ–≤–∞—Ç–µ–ª—å–Ω–æ—Å—Ç—å –æ—Ç–¥–µ–ª—å–Ω—ã—Ö –±–∞–π—Ç–æ–≤. –û–Ω–∏ –Ω–µ–∏–∑–º–µ–Ω—è–µ–º—ã, –∫–∞–∫ –∏ —Å—Ç—Ä–æ–∫–∏, –∞ —ç—Ç–æ –∑–Ω–∞—á–∏—Ç, —á—Ç–æ –∏—Ö –Ω–µ–ª—å–∑—è –∏–∑–º–µ–Ω–∏—Ç—å. –û–±—ä–µ–∫—Ç bytes –æ–±—ã—á–Ω–æ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç—Å—è, –∫–æ–≥–¥–∞ –≤—ã —á–∏—Ç–∞–µ—Ç–µ –¥–≤–æ–∏—á–Ω—ã–π —Ñ–∞–π–ª –∏–ª–∏ –∫–æ–≥–¥–∞ –≤—ã –∏—Å–ø–æ–ª—å–∑—É–µ—Ç–µ —Ç–∞–∫—É—é ‚Äã‚Äã–±–∏–±–ª–∏–æ—Ç–µ–∫—É, –∫–∞–∫ " request " –¥–ª—è –ø–æ–ª—É—á–µ–Ω–∏—è –¥–∞–Ω–Ω—ã—Ö —Å –≤–µ–±-—Å–∞–π—Ç–∞.

–ü—Ä–∏ –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏–∏ –±–∏–±–ª–∏–æ—Ç–µ–∫–∏ re –≤—ã –¥–æ–ª–∂–Ω—ã —Ä–∞–±–æ—Ç–∞—Ç—å –ª–∏–±–æ —Å –±–∞–π—Ç–∞–º–∏, –ª–∏–±–æ —Å –æ–±—ä–µ–∫—Ç–∞–º–∏. –í—ã –Ω–µ –º–æ–∂–µ—Ç–µ —É–∫–∞–∑–∞—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–µ —à–∞–±–ª–æ–Ω—ã –¥–ª—è –±–∞–π—Ç–æ–≤–æ–≥–æ –æ–±—ä–µ–∫—Ç–∞ –∏ –Ω–∞–æ–±–æ—Ä–æ—Ç.

–ï—Å–ª–∏ –≤—ã —Ä–∞–±–æ—Ç–∞–µ—Ç–µ —Å –±–∞–π—Ç–æ–≤—ã–º–∏ –¥–∞–Ω–Ω—ã–º–∏, –≤–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –¥–æ–ª–∂–Ω–∞ —É–∫–∞–∑—ã–≤–∞—Ç—å —à–∞–±–ª–æ–Ω —Ä–µ–≥—É–ª—è—Ä–Ω–æ–≥–æ –≤—ã—Ä–∞–∂–µ–Ω–∏—è –≤ –±–∞–π—Ç–∞—Ö. –ï—Å–ª–∏ –≤—ã –∏—Å–ø–æ–ª—å–∑—É–µ—Ç–µ —Ä–µ–≥—É–ª—è—Ä–Ω–æ–µ –≤—ã—Ä–∞–∂–µ–Ω–∏–µ —Å–æ —Å—Ç—Ä–æ–∫–∞–º–∏, –ø—Ä–µ–¥–æ—Å—Ç–∞–≤—å—Ç–µ —à–∞–±–ª–æ–Ω —Ä–µ–≥—É–ª—è—Ä–Ω–æ–≥–æ –≤—ã—Ä–∞–∂–µ–Ω–∏—è –Ω–∞ –æ—Å–Ω–æ–≤–µ —Å—Ç—Ä–æ–∫.

–ü—Ä–∏–º–µ—Ä —Å—Ü–µ–Ω–∞—Ä–∏—è

–ú—ã —Å–æ–±–∏—Ä–∞–µ–º—Å—è –Ω–∞–ø–∏—Å–∞—Ç—å –ø—Ä–æ–≥—Ä–∞–º–º—É, –∫–æ—Ç–æ—Ä–∞—è –∏–∑–≤–ª–µ–∫–∞–µ—Ç –∑–∞–≥–æ–ª–æ–≤–æ–∫ –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã. –ú—ã —Ä–∞–±–æ—Ç–∞–µ–º —Å –≤–µ–±-—Å–∞–π—Ç–æ–º Python.Engineering –¥–ª—è —ç—Ç–æ–≥–æ —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–∞.

–î–ª—è –Ω–∞—á–∞–ª–∞ –ø–æ–∑–≤–æ–ª—å—Ç–µ " s –∏–º–ø–æ—Ä—Ç–∏—Ä–æ–≤–∞—Ç—å –¥–≤–µ –±–∏–±–ª–∏–æ—Ç–µ–∫–∏, –∫–æ—Ç–æ—Ä—ã–µ –Ω–∞–º –ø–æ–Ω–∞–¥–æ–±—è—Ç—Å—è –¥–ª—è —Å–±–æ—Ä–∫–∏ –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º—ã: urllib –∏ re.

–ë–∏–±–ª–∏–æ—Ç–µ–∫–∞ urllib –ø–æ–∑–≤–æ–ª—è–µ—Ç –Ω–∞–º –¥–µ–ª–∞—Ç—å –≤–µ–±-–∑–∞–ø—Ä–æ—Å—ã, –∞ –±–∏–±–ª–∏–æ—Ç–µ–∫–∞ re –¥–∞–µ—Ç –Ω–∞–º –≤–æ–∑–º–æ–∂–Ω–æ—Å—Ç—å –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —Ä–µ–≥—É–ª—è—Ä–Ω–æ–µ –≤—ã—Ä–∞–∂–µ–Ω–∏–µ –≤ –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º–µ.

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

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

–ó–∞—Ç–µ–º –º—ã –¥–µ–ª–∞–µ–º –≤–µ–±-–∑–∞–ø—Ä–æ—Å –Ω–∞ –≥–ª–∞–≤–Ω—É—é —Å—Ç—Ä–∞–Ω–∏—Ü—É –∫–∞—Ä—å–µ—Ä–Ω–æ–π –∫–∞—Ä–º—ã:

–ü—Ä–æ–≥—Ä–∞–º–º–∞ –∏–∑–≤–ª–µ–∫–∞–µ—Ç —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ –¥–æ–º–∞—à–Ω—é—é —Å—Ç—Ä–∞–Ω–∏—Ü—É Python.Engineering. –≠—Ç–∏ –¥–∞–Ω–Ω—ã–µ —Å—á–∏—Ç—ã–≤–∞—é—Ç—Å—è —Å –ø–æ–º–æ—â—å—é –º–µ—Ç–æ–¥–∞ read (), –∫–æ—Ç–æ—Ä—ã–π —è–≤–ª—è–µ—Ç—Å—è —á–∞—Å—Ç—å—é –º–µ—Ç–æ–¥–∞ urlopen (). –ú—ã —Ö—Ä–∞–Ω–∏–º —ç—Ç–∏ –¥–∞–Ω–Ω—ã–µ –≤ " res " –ø–µ—Ä–µ–º–µ–Ω–Ω–∞—è .

–¢–µ–ø–µ—Ä—å, –∫–æ–≥–¥–∞ —É –Ω–∞—Å –µ—Å—Ç—å –¥–∞–Ω–Ω—ã–µ –∏–∑ –Ω–∞—à–µ–π –ø—Ä–æ–≥—Ä–∞–º–º—ã, –∏—Å–ø–æ–ª—å–∑—É–π—Ç–µ –º–µ—Ç–æ–¥ search (), —á—Ç–æ–±—ã —É–∑–Ω–∞—Ç—å —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ —Ç–µ–≥–∞ "title" –Ω–∞ –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü–µ, –∫–æ—Ç–æ—Ä—É—é –º—ã –∑–∞–ø—Ä–æ—Å–∏–ª–∏. –≠—Ç–æ —Å–æ–¥–µ—Ä–∂–∏—Ç –∑–∞–≥–æ–ª–æ–≤–æ–∫ –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã.

–ß—Ç–æ–±—ã –Ω–∞–π—Ç–∏ –∑–∞–≥–æ–ª–æ–≤–æ–∫ –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã, –∏—Å–ø–æ–ª—å–∑—É–π—Ç–µ –º–µ—Ç–æ–¥ re.search ():

–ù–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –±—É–¥–µ—Ç –∏—Å–∫–∞—Ç—å —Å–æ–¥–µ—Ä–∂–∏–º–æ–µ —Ç–µ–≥–∞ "title & gt ;. –ó–∞—Ç–µ–º –Ω–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –≤—ã–≤–æ–¥–∏—Ç –∑–∞–≥–æ–ª–æ–≤–æ–∫ –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã –Ω–∞ –∫–æ–Ω—Å–æ–ª—å. –ú—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º –º–µ—Ç–æ–¥ .format () , —á—Ç–æ–±—ã –¥–æ–±–∞–≤–∏—Ç—å —ç—Ç–æ—Ç –∑–∞–≥–æ–ª–æ–≤–æ–∫ –≤ –Ω–∞—à—É —Å—Ç—Ä–æ–∫—É. & Nbsp;

–î–∞–≤–∞–π—Ç–µ –∑–∞–ø—É—Å—Ç–∏–º –Ω–∞—à—É –ø—Ä–æ–≥—Ä–∞–º–º—É –∏ –ø–æ—Å–º–æ—Ç—Ä–∏–º, —Ä–∞–±–æ—Ç–∞–µ—Ç –ª–∏ –æ–Ω–∞:

–ù–∞—à–∞ –ø—Ä–æ–≥—Ä–∞–º–º–∞ –Ω–µ –º–æ–∂–µ—Ç –≤—ã–ø–æ–ª–Ω—è—Ç—å—Å—è –ø–æ–ª–Ω–æ—Å—Ç—å—é.

–ó–Ω–∞—á–µ–Ω–∏–µ " home " (–æ—Ç–≤–µ—Ç –Ω–∞—à–µ–π –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã) —è–≤–ª—è–µ—Ç—Å—è –±–∞–π—Ç–æ–≤—ã–º –æ–±—ä–µ–∫—Ç–æ–º, –Ω–æ —à–∞–±–ª–æ–Ω, –∫–æ—Ç–æ—Ä—ã–π –º—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º –¥–ª—è –ø–æ–∏—Å–∫–∞ –∑–∞–≥–æ–ª–æ–≤–∫–∞ –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã, –ø—Ä–µ–¥—Å—Ç–∞–≤–ª—è–µ—Ç —Å–æ–±–æ–π —Å—Ç—Ä–æ–∫—É. –≠—Ç–æ –≤—ã–∑—ã–≤–∞–µ—Ç –æ—à–∏–±–∫—É, –ø–æ—Å–∫–æ–ª—å–∫—É –º—ã –Ω–µ –º–æ–∂–µ–º —Å–æ–ø–æ—Å—Ç–∞–≤–∏—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–µ —à–∞–±–ª–æ–Ω—ã —Å –±–∞–π—Ç–æ–≤—ã–º–∏ –æ–±—ä–µ–∫—Ç–∞–º–∏.

–ï—Å—Ç—å –¥–≤–∞ —Å–ø–æ—Å–æ–±–∞ —Ä–µ—à–∏—Ç—å —ç—Ç—É –ø—Ä–æ–±–ª–µ–º—É.

–†–µ—à–µ–Ω–∏–µ ‚Ññ1: –ø—Ä–µ–æ–±—Ä–∞–∑–æ–≤–∞—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω –≤ –±–∞–π—Ç—ã & nbsp ;

–ú—ã –¥–æ–ª–∂–Ω—ã –ø—Ä–µ–æ–±—Ä–∞–∑–æ–≤–∞—Ç—å —à–∞–±–ª–æ–Ω —Å—Ç—Ä–æ–∫–∏, –∫–æ—Ç–æ—Ä—ã–π –º—ã –∏—Å–ø–æ–ª—å–∑—É–µ–º, –≤ –æ–±—ä–µ–∫—Ç –±–∞–π—Ç–æ–≤. –ú—ã –º–æ–∂–µ–º —Å–¥–µ–ª–∞—Ç—å —ç—Ç–æ —Å –ø–æ–º–æ—â—å—é " b " –∫–ª—é—á–µ–≤–æ–µ —Å–ª–æ–≤–æ –∏–ª–∏ –º–µ—Ç–æ–¥ bytes ():

–ü–µ—Ä–≤—ã–π —Å–ø–æ—Å–æ–± –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏—è " b " –∫–ª—é—á–µ–≤–æ–µ —Å–ª–æ–≤–æ –≤—Å—Ç—Ä–µ—á–∞–µ—Ç—Å—è —á–∞—â–µ, –ø–æ—Ç–æ–º—É —á—Ç–æ –µ–≥–æ –ª–µ–≥—á–µ —á–∏—Ç–∞—Ç—å. –¢–µ–ø–µ—Ä—å, –∫–æ–≥–¥–∞ –º—ã –ø—Ä–µ–æ–±—Ä–∞–∑–æ–≤–∞–ª–∏ –Ω–∞—à —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω –≤ –±–∞–π—Ç—ã, –º—ã –º–æ–∂–µ–º –∑–∞–ø—É—Å—Ç–∏—Ç—å –Ω–∞—à –∫–æ–¥:

–ù–∞—à –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç —Ç–µ–∫—Å—Ç, —Å–æ–æ—Ç–≤–µ—Ç—Å—Ç–≤—É—é—â–∏–π –Ω–∞—à–µ–º—É –∑–∞–ø—Ä–æ—Å—É.

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

–†–µ—à–µ–Ω–∏–µ ‚Ññ2: –¥–µ–∫–æ–¥–∏—Ä–æ–≤–∞–Ω–∏–µ –¥–∞–Ω–Ω—ã—Ö –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã

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

–ú—ã –º–æ–∂–µ–º –¥–µ–∫–æ–¥–∏—Ä–æ–≤–∞—Ç—å –¥–∞–Ω–Ω—ã–µ –Ω–∞—à–µ–π –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã, –∏–∑–º–µ–Ω–∏–≤ —Å—Ç—Ä–æ–∫—É –∫–æ–¥–∞, –≤ –∫–æ—Ç–æ—Ä–æ–π –º—ã –æ—Ç–∫—Ä—ã–≤–∞–µ–º –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—É:

–≠—Ç–æ—Ç –∫–æ–¥ –±—É–¥–µ—Ç –¥–µ–∫–æ–¥–∏—Ä–æ–≤–∞—Ç—å –æ—Ç–≤–µ—Ç –Ω–∞—à–µ–≥–æ –≤–µ–±-–∑–∞–ø—Ä–æ—Å–∞, —á—Ç–æ–±—ã –º—ã –º–æ–≥–ª–∏ —Ä–∞—Å—Å–º–∞—Ç—Ä–∏–≤–∞—Ç—å –µ–≥–æ –∫–∞–∫ —Å—Ç—Ä–æ–∫—É. –í–∞–º —Å–ª–µ–¥—É–µ—Ç –∑–∞–º–µ–Ω–∏—Ç—å " utf-8 " –º–µ—Ç–æ–¥–æ–º e ncoding –≤–µ–±-—Å—Ç—Ä–∞–Ω–∏—Ü—ã, –∫–æ—Ç–æ—Ä—É—é –≤—ã –∑–∞–ø—Ä–∞—à–∏–≤–∞–µ—Ç–µ, –∏—Å–ø–æ–ª—å–∑—É–µ—Ç.

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

–î–∞–≤–∞–π—Ç–µ –∑–∞–ø—É—Å—Ç–∏–º –Ω–∞—à –∫–æ–¥ –∏ –ø–æ—Å–º–æ—Ç—Ä–∏–º —á—Ç–æ –ø—Ä–æ–∏—Å—Ö–æ–¥–∏—Ç: & nbsp;

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

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

–û—à–∏–±–∫–∞ " TypeError: –Ω–µ–ª—å–∑—è –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω –≤ –±–∞–π—Ç–∞—Ö -–ø–æ–¥–æ–±–Ω—ã–π –æ–±—ä–µ–∫—Ç " –æ—à–∏–±–∫–∞ –≤–æ–∑–Ω–∏–∫–∞–µ—Ç, –∫–æ–≥–¥–∞ –≤—ã –ø—ã—Ç–∞–µ—Ç–µ—Å—å —Å–æ–ø–æ—Å—Ç–∞–≤–∏—Ç—å —Å—Ç—Ä–æ–∫–æ–≤—ã–π —à–∞–±–ª–æ–Ω —Å –æ–±—ä–µ–∫—Ç–æ–º, –∫–æ—Ç–æ—Ä—ã–π —Ö—Ä–∞–Ω–∏—Ç—Å—è —Å –∏—Å–ø–æ–ª—å–∑–æ–≤–∞–Ω–∏–µ–º –±–∞–π—Ç–æ–≤–æ–≥–æ —Ç–∏–ø–∞ –¥–∞–Ω–Ω—ã—Ö.

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

–¢–µ–ø–µ—Ä—å –≤—ã –≥–æ—Ç–æ–≤—ã –∏—Å–ø—Ä–∞–≤–∏—Ç—å —ç—Ç—É –æ—à–∏–±–∫—É Python –∫–∞–∫ –ø—Ä–æ—Ñ–µ—Å—Å–∏–æ–Ω–∞–ª !