



"""
    测试：# nametuple命名元组 2021-06-18
"""

import collections
# 通过namedtuple创建的一个元组的子类
# 新建一个元组子类，这个子类名为User，有两个属性值 name和id
# User1就是新建的元组子类，可以用来例化对象
User1 = collections.namedtuple('User', 'name age id')
user = User1('tester', '22', '464643123')

print(user)



u2=User1('tester2','23','sdfsdf')
print(u2)



# set的运算

c1 = set("asfdsgldf")
print(c1)
c2 = set("asfdsgldfkhj")

c3 = c2-c1
print(c3)


b16bc7292e28ec7ef3f0f0afd3f93d79c228f6d3
<mask token>

<mask token>
print(user)
<mask token>
print(u2)
<mask token>
print(c1)
<mask token>
print(c3)

<mask token>
User1 = collections.namedtuple('User', 'name age id')
user = User1('tester', '22', '464643123')
print(user)
u2 = User1('tester2', '23', 'sdfsdf')
print(u2)
c1 = set('asfdsgldf')
print(c1)
c2 = set('asfdsgldfkhj')
c3 = c2 - c1
print(c3)

<mask token>
import collections
User1 = collections.namedtuple('User', 'name age id')
user = User1('tester', '22', '464643123')
print(user)
u2 = User1('tester2', '23', 'sdfsdf')
print(u2)
c1 = set('asfdsgldf')
print(c1)
c2 = set('asfdsgldfkhj')
c3 = c2 - c1
print(c3)





"""
    测试：# nametuple命名元组 2021-06-18
"""

import collections
# 通过namedtuple创建的一个元组的子类
# 新建一个元组子类，这个子类名为User，有两个属性值 name和id
# User1就是新建的元组子类，可以用来例化对象
User1 = collections.namedtuple('User', 'name age id')
user = User1('tester', '22', '464643123')

print(user)



u2=User1('tester2','23','sdfsdf')
print(u2)



# set的运算

c1 = set("asfdsgldf")
print(c1)
c2 = set("asfdsgldfkhj")

c3 = c2-c1
print(c3)

