Home > Backend Development > Python Tutorial > Python Learning_Variables with Guibs

Python Learning_Variables with Guibs

黄舟
Release: 2017-01-20 16:38:53
Original
1509 people have browsed it

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)
Copy after login

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)!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template