Multiline comments in Python

Опубликовано: 19 Апрель 2024
на канале: Python Morsels
669
27

Python does not have multiline comments. But you can use alternatives like docstrings, editor shortcuts, and conventional commenting methods, depending on your requirements.

Article at https://pym.dev/multiline-comments/

More #Python screencasts at https://pym.dev/screencasts/

00:00 Does Python have multi-line comments?
00:24 What about triple quotes?
01:05 Docstrings versus comments
01:55 What if I want to comment-out a whole block of code?
02:29 How to comment multiple lines
02:59 Use docstrings, your code editor, or version control


На этой странице сайта вы можете посмотреть видео онлайн Multiline comments in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Python Morsels 19 Апрель 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 669 раз и оно понравилось 27 зрителям. Приятного просмотра!