Python
Python基础
python环境搭建
python-列表
python基本语法
变量
变量与对象
数据类型
类型检查
类型转换
运算符
python虚拟环境
格式化字符串
python元组
pandas学习
easygui使用
textfsm使用
python循环
转换编码格式
os模块下常用的函数和方法使用
文件存储
网络运维自动化
python基础
python列表
python函数一
python字符串
python字典
python数据类型
正则表达式学习
python的 Nornir简介与使用
netaddr简介与使用
Python爬虫
Python网络编程
本文档使用 MrDoc 发布
-
+
首页
python基本语法
# python基本语法 ## 基本语法 - python语法严格区分大小写 - python每一行都是一条语句,以换行结束 - 每一行语句长度不要过长,可以通过'\'换行 - python是缩进严格控制的 - 使用'#'进行注释 ```python # 输出打印 print('hello world!') # 代码过长使用 \换行 print('Although it was signed into law just last month, grassroots groups tasked \with wading through its aftermath told Newsweek that its effects are already being felt.') ``` ## 注释 ``` # 单行注释使用#开始 # print("hello world!") ``` ``` # 多行注释,以3对单引号或者双引号代表 ```
Chuck
2023年1月3日 14:18
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码