Подстрока Python: пошаговое руководство

–ü–æ–¥—Å—Ç—Ä–æ–∫–∞ Python - —ç—Ç–æ —á–∞—Å—Ç—å —Ç–µ–∫—Å—Ç–∞, –≤–∑—è—Ç–æ–≥–æ –∏–∑ —Å—Ç—Ä–æ–∫–∏. –í—ã –º–æ–∂–µ—Ç–µ –∏–∑–≤–ª–µ—á—å –ø–æ–¥—Å—Ç—Ä–æ–∫—É –≤ Python —Å –ø–æ–º–æ—â—å—é –Ω–∞—Ä–µ–∑–∫–∏ –≤ —Ñ–æ—Ä–º–∞—Ç–µ: YourString [StartingIndex: StoppingIndex: CharactersToSkip].

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

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

–°—Ç—Ä–æ–∫–æ–≤—ã–µ –∏–Ω–¥–µ–∫—Å—ã: –æ–±–Ω–æ–≤–ª–µ–Ω–∏–µ

–ü—Ä–µ–∂–¥–µ —á–µ–º –º—ã –ø—Ä–æ–¥–æ–ª–∂–∏–º —á—Ç–æ–±—ã –æ–±—Å—É–¥–∏—Ç—å –Ω–∞—Ä–µ–∑–∫—É –∏ —Å–∏–Ω—Ç–∞–∫—Å–∏—Å —Ñ—Ä–∞–≥–º–µ–Ω—Ç–∞, –º—ã –¥–æ–ª–∂–Ω—ã —Å–Ω–∞—á–∞–ª–∞ –ø–æ—Å–º–æ—Ç—Ä–µ—Ç—å, –∫–∞–∫ –∏–Ω–¥–µ–∫—Å–∏—Ä—É—é—Ç—Å—è —Å—Ç—Ä–æ–∫–∏ Python .

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

–ö–∞–∂–¥—ã–π —Å–∏–º–≤–æ–ª –≤ —Å—Ç—Ä–æ–∫–µ –∏–º–µ–µ—Ç —Å–≤–æ–π —Å–æ–±—Å—Ç–≤–µ–Ω–Ω—ã–π –∏–Ω–¥–µ–∫—Å –∑–Ω–∞—á–µ–Ω–∏–µ , –∫–æ—Ç–æ—Ä–æ–µ —É–∫–∞–∑—ã–≤–∞–µ—Ç –ø–æ–ª–æ–∂–µ–Ω–∏–µ —Å–∏–º–≤–æ–ª–∞ –≤ —Å—Ç—Ä–æ–∫–µ. –≠—Ç–∏ —á–∏—Å–ª–∞ –Ω–∞—á–∏–Ω–∞—é—Ç—Å—è —Å –ø–æ—Ä—è–¥–∫–æ–≤–æ–≥–æ –Ω–æ–º–µ—Ä–∞ 0. –ù–∞–ø—Ä–∏–º–µ—Ä, –≤–æ—Ç –∫–∞–∫ –±—É–¥–µ—Ç –ø—Ä–µ–¥—Å—Ç–∞–≤–ª–µ–Ω–∞ ‚Äã‚Äã—Å—Ç—Ä–æ–∫–∞ –ü–æ–¥—Å—Ç—Ä–æ–∫–∏ Python:

< tr> < td> 6
P y t h o n
S u b s t r i n g !
1 2 3 4 5 7 8 9 10 11 12 13 14 15 16
< p> –ü–µ—Ä–≤—ã–π —Å–∏–º–≤–æ–ª –≤ –Ω–∞—à–µ–π —Å—Ç—Ä–æ–∫–µ (P) –∏–º–µ–µ—Ç –∏–Ω–¥–µ–∫—Å–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ 0. ! —Å–∏–º–≤–æ–ª –∏–º–µ–µ—Ç –∏–Ω–¥–µ–∫—Å–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ 16.

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

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

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

–î–æ–ø—É—Å—Ç–∏–º, –º—ã —Ö–æ—Ç–∏–º –ø–æ–ª—É—á–∏—Ç—å –ø–µ—Ä–≤—ã–µ —Ç—Ä–∏ —Å–∏–º–≤–æ–ª–∞ –∏–∑ —Å—Ç—Ä–æ–∫–∏ & mdash; –∫–∞–∫ —ç—Ç–æ —Å–¥–µ–ª–∞—Ç—å? –ò–ª–∏ —á—Ç–æ, –µ—Å–ª–∏ –º—ã —Ö–æ—Ç–∏–º –ø–æ–ª—É—á–∏—Ç—å –ø–æ—Å–ª–µ–¥–Ω–∏–µ –¥–≤–∞ —Å–∏–º–≤–æ–ª–∞ –≤ —Å—Ç—Ä–æ–∫–µ?

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

< p> –°—Ä–µ–∑ —Å–æ—Å—Ç–æ–∏—Ç –∏–∑ —Ç—Ä–µ—Ö –∫–æ–º–ø–æ–Ω–µ–Ω—Ç–æ–≤:

  • start: –ø–æ–∑–∏—Ü–∏—è –∏–Ω–¥–µ–∫—Å–∞, —Å –∫–æ—Ç–æ—Ä–æ–π –¥–æ–ª–∂–µ–Ω –Ω–∞—á–∏–Ω–∞—Ç—å—Å—è –Ω–∞—à —Å—Ä–µ–∑. –ü–æ —É–º–æ–ª—á–∞–Ω–∏—é —ç—Ç–æ 0.
  • end: –ø–æ–∑–∏—Ü–∏—è, –≤ –∫–æ—Ç–æ—Ä–æ–π –∑–∞–∫–∞–Ω—á–∏–≤–∞–µ—Ç—Å—è —Ñ—Ä–∞–≥–º–µ–Ω—Ç. –°–∏–º–≤–æ–ª –≤ –∫–æ–Ω–µ—á–Ω–æ–π –ø–æ–∑–∏—Ü–∏–∏ –Ω–µ –≤–∫–ª—é—á–∞–µ—Ç—Å—è –≤ —Å—Ä–µ–∑. –ü–æ —É–º–æ–ª—á–∞–Ω–∏—é end - —ç—Ç–æ –¥–ª–∏–Ω–∞ —Å—Ç—Ä–æ–∫–∏.
  • step: —É–∫–∞–∑—ã–≤–∞–µ—Ç —Ñ—Ä–∞–≥–º–µ–Ω—Ç—É –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å –∫–∞–∂–¥—ã–π N-–π —Å–∏–º–≤–æ–ª. N —Ä–∞–≤–Ω–æ —É–∫–∞–∑–∞–Ω–Ω–æ–º—É –≤–∞–º–∏ —à–∞–≥—É. step –ø–æ —É–º–æ–ª—á–∞–Ω–∏—é —Ä–∞–≤–µ–Ω 1.

–ü–æ–¥—Å—Ç—Ä–æ–∫–∞ Python: –ü—Ä–∏–º–µ—Ä—ã

–ü–æ–ª—É—á–∏—Ç—å –ø–µ—Ä–≤—ã–µ —Ç—Ä–∏ —Å–∏–º–≤–æ–ª–∞

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

–í—ã–≤–æ–¥ –Ω–∞—à–µ–≥–æ –∫–æ–¥–∞:

–û—Å—Ç–∞–≤–∏—Ç—å –Ω–∞—á–∞–ª—å–Ω—ã–π –Ω–æ–º–µ—Ä

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

–ú—ã –º–æ–∂–µ–º –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å —ç—Ç–æ—Ç –º–µ—Ç–æ–¥ –¥–ª—è –ø–æ–ª—É—á–µ–Ω–∏—è –ø–µ—Ä–≤—ã—Ö —Ç—Ä–µ—Ö —Å–∏–º–≤–æ–ª–æ–≤ –∏–∑ —Å—Ç—Ä–æ–∫–∏ –±–µ–∑ –Ω–µ–æ–±—Ö–æ–¥–∏–º–æ—Å—Ç–∏ —É–∫–∞–∑—ã–≤–∞—Ç—å 0 –≤ –∫–∞—á–µ—Å—Ç–≤–µ –Ω–∞—à–µ–≥–æ –Ω–∞—á–∞–ª—å–Ω–æ–≥–æ —á–∏—Å–ª–∞: < / p>

–ù–∞—à –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç —Ç–æ—Ç –∂–µ —Ä–µ–∑—É–ª—å—Ç–∞—Ç, —á—Ç–æ –∏ –Ω–∞—à –ø—Ä–µ–¥—ã–¥—É—â–∏–π –ø—Ä–∏–º–µ—Ä. –ú—ã –Ω–µ —É–∫–∞–∑–∞–ª–∏ –Ω–∞—á–∞–ª—å–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ. –≠—Ç–æ –ø–æ—Ç–æ–º—É, —á—Ç–æ start –ø–æ —É–º–æ–ª—á–∞–Ω–∏—é —Ä–∞–≤–µ–Ω 0. –ú—ã —Ö–æ—Ç–∏–º –∏–∑–≤–ª–µ–∫–∞—Ç—å —Å–∏–º–≤–æ–ª—ã –∏–∑ –Ω–∞—á–∞–ª–∞ –Ω–∞—à–µ–π —Å—Ç—Ä–æ–∫–∏, —á—Ç–æ–±—ã —ç—Ç–æ—Ç —Å–∏–Ω—Ç–∞–∫—Å–∏—Å —Ä–∞–±–æ—Ç–∞–ª.

–ü–æ–ª—É—á–∏—Ç—å –ø–æ—Å–ª–µ–¥–Ω–∏–µ –¥–≤–∞ —Å–∏–º–≤–æ–ª–∞

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

–ù–∞—à –∫–æ–¥ –≤–æ–∑–≤—Ä–∞—â–∞–µ—Ç: on . –ú—ã —É–∫–∞–∑–∞–ª–∏ —Ç–æ–ª—å–∫–æ –æ–¥–Ω–æ –∑–Ω–∞—á–µ–Ω–∏–µ: -2. –≠—Ç–æ –Ω–∞—à –Ω–∞—á–∞–ª—å–Ω—ã–π –Ω–æ–º–µ—Ä. -2 —É–∫–∞–∑—ã–≤–∞–µ—Ç –Ω–∞—à–µ–º—É —Ñ—Ä–∞–≥–º–µ–Ω—Ç—É –Ω–∞—á–∞—Ç—å –∏–∑–≤–ª–µ—á–µ–Ω–∏–µ —Å–∏–º–≤–æ–ª–æ–≤ —Å–æ –≤—Ç–æ—Ä–æ–π –¥–æ –ø–æ—Å–ª–µ–¥–Ω–µ–π –ø–æ–∑–∏—Ü–∏–∏ –∏–Ω–¥–µ–∫—Å–∞ –≤ –Ω–∞—à–µ–π —Å—Ç—Ä–æ–∫–µ.

–î—Ä—É–≥–∏–µ –ø—Ä–∏–º–µ—Ä—ã

–ú—ã –ø–æ–¥–≥–æ—Ç–æ–≤–∏–ª–∏ –µ—â–µ –Ω–µ—Å–∫–æ–ª—å–∫–æ –ø—Ä–∏–º–µ—Ä–æ–≤, –∫–æ—Ç–æ—Ä—ã–µ –ø–æ–º–æ–≥—É—Ç –≤–∞–º –Ω–∞—É—á–∏—Ç—å—Å—è –∏—Å–ø–æ–ª—å–∑–æ–≤–∞—Ç—å –º–µ—Ç–æ–¥ –Ω–∞—Ä–µ–∑–∫–∏.

–ü–æ–ª—É—á–∏—Ç—å –ø–æ—Å–ª–µ–¥–Ω–∏–π —Å–∏–º–≤–æ–ª –≤ —Å—Ç—Ä–æ–∫–µ

–ú—ã —É–∫–∞–∑–∞–ª–∏ —Ç–æ–ª—å–∫–æ –Ω–∞—á–∞–ª—å–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ –≤ —ç—Ç–æ–º –ø—Ä–∏–º–µ—Ä. –ö–æ–Ω–µ—á–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ –æ—Ç—Å—É—Ç—Å—Ç–≤—É–µ—Ç. –≠—Ç–æ –æ–∑–Ω–∞—á–∞–µ—Ç s –Ω–∞—à–∞ —Å—Ç—Ä–æ–∫–∞ –ø–æ–ª—É—á–∏—Ç —Ç–æ–ª—å–∫–æ –ø–æ—Å–ª–µ–¥–Ω–∏–π —Å–∏–º–≤–æ–ª.

–ü–æ–ª—É—á–∏—Ç—å —Å–∏–º–≤–æ–ª—ã –≤ –¥–∏–∞–ø–∞–∑–æ–Ω–µ –æ—Ç 2 –¥–æ 3

–ù–∞—à–µ –Ω–∞—á–∞–ª—å–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ - 2, –∞ –Ω–∞—à–µ –∫–æ–Ω–µ—á–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ - 3. –í—Å–µ —Å–∏–º–≤–æ–ª—ã –≤ –¥–∏–∞–ø–∞–∑–æ–Ω–µ 2 –∏ 3 –≤–æ–∑–≤—Ä–∞—â–∞—é—Ç—Å—è. –≠—Ç–æ –∏—Å–∫–ª—é—á–∞–µ—Ç —Å–∞–º —Å–∏–º–≤–æ–ª 3, –ø–æ—Å–∫–æ–ª—å–∫—É –∫–æ–Ω–µ—á–Ω–æ–µ –∑–Ω–∞—á–µ–Ω–∏–µ —è–≤–ª—è–µ—Ç—Å—è –∏—Å–∫–ª—é—á–∏—Ç–µ–ª—å–Ω—ã–º.

–ü—Ä–æ–ø—É—Å–∫–∞—Ç—å –∫–∞–∂–¥—ã–π –≤—Ç–æ—Ä–æ–π —Å–∏–º–≤–æ–ª

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

–ü—Ä–æ—Å–º–æ—Ç—Ä–∏—Ç–µ Repl.it –∏–∑ —ç—Ç–æ–≥–æ —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–∞:



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

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

–£–∑–Ω–∞–π—Ç–µ –±–æ–ª—å—à–µ –æ —è–∑—ã–∫–µ Python –≤ –Ω–∞—à–µ–º —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–µ –ø–æ –∏–∑—É—á–µ–Ω–∏—é 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