Multiline comments in Python

Опубликовано: 05 Октябрь 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