需求
找出两个集合相交的数据
示例
s1 = {"a","b","c"}
s2 = {"b","c","d"}
s3 = s1 & s2
print(s3)
找出两个集合相交的数据
s1 = {"a","b","c"}
s2 = {"b","c","d"}
s3 = s1 & s2
print(s3)
day20回顾 面向对象 类 用来描述对象,创建对象 对象(实例 ) 属性 &
Python函数:open() 1:作用:打开一个文件 2:语法: open(file[, mode[, buffering[, encoding[, errors[, newline[, closefd=True]]]]]]) 3:参数说明: file: 要打开的文件名,需加路径(除非是在当前目录)。唯一强制参数 mode: 文件打开的模式 bufferi
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M