Home  >  Article  >  Backend Development  >  Python Learning_Variables with Guibs

Python Learning_Variables with Guibs

黄舟
黄舟Original
2017-01-20 16:38:531464browse

Guibs’ Python learning_variables

# 变量的命名和使用
# 变量名只能包含字母、数字和下划线. [不能以数字打头] [001_send message x][send_message_001 ✔]️
# 变量名不能包含空格, 可以使用下划线来分割单词 [send message x][send_message ✔]️
# 不能将 Python 关键字和函数名用作变量名# 变量名应简短且有描述性 例如姓名: [n x][name ✔]️
# 注意 l 和 O 的使用, 部分字体中会与 1 和 0 混淆message = "Hello Guibs"print(message)

message = "Fighting Guibs"print(message)

The above is the content of Guibs’s Python learning_variables. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn