专题博客链接
[题解]浙大Python PTA课后习题博客记录(Python)
原题题目
代码实现
players = {1,2,3,4,5,6,7,8,9,10};tickets = set([])
string = list(input().split(','));strl = len(string)
tickets.update(int(string[i]) for i in range(strl));ret = players ^ tickets;flag = 0
for i in ret:
if i >=6:
if(flag==0):print(i,end = '');flag = 1
else:print(" %d"%i,end = '')