- IED中不识别中文,表头加: #coding=utf-8
输出格式拼接:
python中不支持不同数据类型的输出、
如c语言中:
int i=1
printf(“张子良”,i)在python里面不支持,必须要用拼接的方式
.#coding=utf-8 ##编译中文
int i=1
print(“张子良 {0}“.format(i))类与对象,类之间的继承
python里面对象的pickle(腌制)
- 中python模块的互相调用(两种方法)
导入模块中所有的方法
from ……. import * - 模块的_ _ name_ _属性(变量)
、
7.dir()
查询对象的属性。
Python学习笔记(三)
最新推荐文章于 2022-11-21 18:37:21 发布