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, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 669 раз и оно понравилось 27 людям.