Faculty of Quarts Department of Back Quarts (chat: Python is available)

Overview

It's a complete chat, but when debugging with Python, ** when commenting out multiple lines **, In c language, you can write # if 0, but you can't do that, so I think I would use ** triple quotes **.

Occasionally, I get scolded for trying to use ** back quotes (3 barrages) . I sometimes thought, "Yes, I was able to use it yesterday, but ..." ( There is a personal thing **).

Triple back quotes, that, when did you use it, so I will write an article.

Triple back quotes, when did you use that?

Yes. It's here. It's qiita. ** Markdown ** isn't it? When calling the following "black". The following is an example of multi-line commenting out in Python. (** Of course, if you use back quotes, you will be scolded! **)

'''a = 1
b = 2
c = 3
#kore python ni mienai
#sore ha sateoki

d = [1,2,3]
print(a,b,c,d)
'''
d = [4,5]
print(d)

The quotation marks themselves have a confusing impression. .. ..

At this time, I tried to sort out my head about quotation marks ...

I looked it up on Wikipedia

It's not a complicated fuss. .. .. ** There are countless. ** ** I can't organize it. I understood that there are innumerable. Only a part is quoted below.

Quote: https://en.wikipedia.org/wiki/Quotation_mark

image.png

However, back quotes seem to be out of the group

As mentioned above, quotes come in a myriad of forms, ** Back quotes don't seem to be in the group. ** **

The only external link, something, was introduced as a problem.

"ASCII and Unicode quotation marks" by Markus Kuhn (1999) – includes detailed discussion of the ASCII `backquote' problem

Summary

Nothing in particular. If you have any comments, please let us know. : candy:

Recommended Posts

Faculty of Quarts Department of Back Quarts (chat: Python is available)
python note: when easy_install is not available
What kind of programming language is Python?
[python] [meta] Is the type of python a type?
The answer of "1/2" is different between python2 and 3
This is the only basic review of Python ~ 1 ~
This is the only basic review of Python ~ 2 ~
This is the only basic review of Python ~ 3 ~