python> Is it possible to make in-line comments?> It seems that it has to be on multiple lines

Operating environment


Python 2.7.9 on Raspberry Pi2

In-line comments that can be used in C etc.

time.sleep(100/*msec*/);

I don't know how to make a comment similar to this in python.

As a search http://stackoverflow.com/questions/5617159/mid-line-comment-in-python

Actually if you break your statement into multiple lines you can.

It seems that you have to make it multiple lines.

Recommended Posts

python> Is it possible to make in-line comments?> It seems that it has to be on multiple lines
python> How to write multiple lines> How to write in mnist_with_summaries.py> It seems that there is no need for line concatenation symbols
[Python] tkinter Code that is likely to be reused
[Python] pandas Code that is likely to be reused
Processing of python3 that seems to be usable in paiza
Tensorflow-GPU seems to be together if it is TF2.0 or later?
[Python] It seems that global variables cannot be referenced in Multiprocessing
python3.9 has new features that no one is paying attention to ...
Python 3.9 dict merge (`|`) seems to be useful
Python has come to be recognized so far.
How to make multiple kernels selectable on Jupyter
[Road to Intermediate] Python seems to be all objects
[Python] There seems to be something called __dict__
It seems that unidic-lite is required in mecab-python3
Make it easy to install the ROS2 development environment with pip install on Python venv
Starting with Python 3.10, the form returned by inspect.signature () seems to be based on typing.get_type_hints ().
A mechanism to call a Ruby method from Python that can be done in 200 lines