<div dir="ltr"><div><span style="color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px"><br></span></div><div><span style="color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px">Unlike comments, triple-quoted strings are still parsed and must be syntactically valid,</span><br></div><div><span style="color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px">regardless of where they appear in the source code.</span><div><span style="color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px">M.</span></div></div><div><span style="color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Liberation Sans",sans-serif;font-size:15px"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 6, 2022 at 5:44 PM Michal Vanka <<a href="mailto:junk.mv@gmail.com">junk.mv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Toto praví o Python komentech strejda google:<div><br></div><div><div role="heading" style="margin-bottom:12px;font-family:"Google Sans",arial,sans-serif;color:rgb(32,33,36);font-size:16px"><b>How do we create comments in Python?</b></div><div style="padding:0px 20px;color:rgb(32,33,36);font-family:arial,sans-serif;font-size:16px"><ol style="margin:0px;padding:0px"><li style="margin:0px 0px 4px;padding:0px;list-style:inherit">A comment in Python starts with the hash character, #, and extends to the end of the physical line.</li><li style="margin:0px 0px 4px;padding:0px;list-style:inherit">Making use of comments in python is very easy, you can include a comment line into your code fairly easily.</li><li style="margin:0px 0px 4px;padding:0px;list-style:inherit">It is also possible to use Triple Quotation (''') for multiline comments.</li></ol></div></div><div><br></div><div>Případně odkaz na diskusi zde:</div><div><a href="https://stackoverflow.com/questions/7696924/is-there-a-way-to-create-multiline-comments-in-python" target="_blank">https://stackoverflow.com/questions/7696924/is-there-a-way-to-create-multiline-comments-in-python</a></div><div><br></div><div>M.</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 6, 2022 at 3:18 PM Pavel Hudeček <<a href="mailto:edizon@seznam.cz" target="_blank">edizon@seznam.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dobrý den všem,<div>myslel jsem si, že <i style="background-color:transparent"><b>""" text """</b></i><span style="background-color:transparent"> v Pythonu</span></div><div><span style="background-color:transparent">je něco jako </span><i style="background-color:transparent"><b>/* text */</b></i><span style="background-color:transparent"> v C.</span></div><div>Ale když takhle zakomentuju část odsazeného bloku, tak to nefunguje.</div><div>Kdyby to bylo v pythonu 1.0, předpokládal bych, že je to bug. Ale ve 3.7?</div><div>Je známo proč to tak je?</div><div><br></div><div>Díky,</div><div>PH</div></div>_______________________________________________<br>
HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</blockquote></div>
</blockquote></div>