1 Star 0 Fork 0

兴趣e族/python-tutorial

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
3_variable.py 565 Bytes
Copy Edit Raw Blame History
fangwei authored 2024-12-12 09:17 +08:00 . first commit
'''
定义变量要点:
1.变量名尽量使用英文字母,尽量使用小写字母、数字,并使用下划线分隔单词,不能有空格。
2.取名要易于理解和记忆,不要用 python 自带的关键字(编译器会有颜色标识),如:if,print,for等
3.大小写敏感:user_name和 user_NAME是两个不同的变量名
'''
pre_title = "今天的幸运之星是:"
pre_title_cn = pre_title
pre_title_en = "Today's lucky star is:"
print(pre_title + "张三")
print(pre_title_en + "李四")
print(pre_title_cn + "王五")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fang_wei/python-tutorial.git
git@gitee.com:fang_wei/python-tutorial.git
fang_wei
python-tutorial
python-tutorial
master

Search