Python基础---Comments(注释)

Concept

Comments are notes of explanation that document lines or sections of a
program. [1]
Comments are part of the program, but the Python interpreter
ignores them. They are intended for people who may be reading the
source code. [1]

单行注释

# This program displays a person's
#  name and address.
print('Pegga!')
print("Pegga's Home")

================== RESTART: C:\Users\yyf24\Desktop\test.py ==================
Pegga!
Pegga's Home

Python基础---Comments(注释)_第1张图片
在这里插入图片描述

参考文献
[1] Tony Gaddis,Starting Out with Python[M],United Kingdom: Pearson,2019

你可能感兴趣的:(Python)