示例#1
0
文件: ex_6.py 项目: leoong55/lab3RIP
def f1(arg):
    ''' Функция ​f1​ должна вывести отсортированный список профессий
    без повторений (строки в разном регистре считать равными).
    Сортировка должна​ игнорировать регистр​. Используйте наработки
    из предыдущих заданий.'''
    #raise NotImplemented
    return sorted(unique(field(arg, 'job-name'), ignore_case=True))
示例#2
0
def f1Analog(args):
    JobsArray = []
    for i in args:
        for k, d in i.items():
            if k == "job-name":
                JobsArray.append(d)
    UJ = unique(JobsArray, True)
    UJA = []
    f = True
    while f:
        try:
            UJA.append(next(UJ))
        except StopIteration:
            f = False
    UJA = sorted(UJA)
    return (UJA)
示例#3
0
def f1(arg):
    # Отсортированный без повторений Список названий профессий
    return sorted((x for x in unique(list(field(data, "job-name")), ignore_case=True)))
示例#4
0
文件: ex_6.py 项目: seninka/LABI_RIP
def f1(data):
    return sorted(list(unique(list(field(data, 'job-name')),
                              ignore_case=True)))
示例#5
0
文件: ex_6.py 项目: TimurC1/study
def f1(arg):
    return sorted([j for j in unique((dict(i)['job-name'] for i in arg))])
示例#6
0
文件: ex_2.py 项目: Rapdigol/Bamonka
#!/usr/bin/env python3
from librip.gens import gen_random
from librip.gens import gen_random_one_string
from librip.iterators import unique

data1 = list(i
             for i in unique([1, 1, 1, 1, 1, 2, 2, 2, 2, 2], ignore_case=True))
data2 = list(i for i in unique(gen_random(1, 3, 10), ignore_case=True))

data4 = list(i for i in unique(['a', 'A', 'b', 'B'], ignore_case=True))
data5 = list(i for i in unique(['a', 'A', 'b', 'B'], ignore_case=False))
print(data1)
print(data2)
print(data4)
print(data5)
#Реализация задания 2
示例#7
0
def f1(arg):
    return sorted(unique([x for x in field(arg, "job-name")],
                         ignore_case=True),
                  key=str.lower)
示例#8
0
def f1(arg):
    return sorted(list(unique(field(arg, "job-name"), ignore_case=True)), key=lambda x: str.casefold(x))
示例#9
0
def f1(arg):
    return (sorted(
        [i for i in unique([j['job-name'] for j in arg], ignore_case=True)]))
示例#10
0
文件: ex_6.py 项目: kek-sick/lab_2
def f1(arg):
    return sorted(unique(field(arg[0], "job-name"), ignore_case=True))
示例#11
0
def f1(arg):
    return sorted(unique(field(data, "job-name"), ignore_case=True),
                  key=lambda x: x.lower())
示例#12
0
def f1(arg):
    return sorted(job for job in unique(field(arg, "job-name"), True))
示例#13
0
def f1(arg):
    return sorted(unique(field(arg, "job-name")))
示例#14
0
def f1(data):
    return sorted((unique(field(data, 'job-name'), ignore_case=False)),
                  key=lambda x: x.lower())
示例#15
0
def f1(arg):
    return list(
        sorted(unique(field(data, 'job-name'), ignore_case=True),
               key=lambda x: x.lower()))
示例#16
0
def f1(arg):
    return sorted(unique([x for x in field(arg, 'job-name')],
                         ignore_case=True))
示例#17
0
文件: ex_6.py 项目: msamokhina/lab_4
def f1(arg):
    return sorted((x for x in unique(list(field(data, "job-name")), True)))
示例#18
0
def f1(arg):
    return sorted(unique(field(arg, 'job-name'), ignore_case=True))
示例#19
0
def f1(arg):
    return sorted(unique(field(arg, 'job-name'), ignore_case=1),
                  key=lambda x: x.lower())
示例#20
0
文件: ex_6.py 项目: aksesss/lab4
def f1(arg):
    return sorted(unique((field(arg, 'job-name')), ignore_case=True),
                  key=str.lower)
示例#21
0
def f1(arg):
    return sorted(
        [a for a in unique([i["job-name"] for i in arg], ignore_case=1)])
示例#22
0
def f1(arg):
    uni = unique([i for i in field(arg, 'job-name')], ignore_case=True)
    for i in uni:
        pass
    return uni.items
示例#23
0
def f1(arg):
   #return (sorted(unique(field(arg,"job-name"),ignore_case=True)))
   return sorted(unique(field(arg, "job-name"), ignore_case=1), key=lambda x:x.lower())
示例#24
0
def f1(arg):
    return list(
        sorted(list(unique(list(field(arg, 'job-name')), ignore_case=True))))
示例#25
0
def f1(arg):
    job = list(field(arg, 'job-name'))
    job = unique(job, ignore_case = True)
    job = sorted(job)
    return job
示例#26
0
def f1(arg):

    return list(unique(arg))
示例#27
0
def f1(arg):
    return sorted(list(unique(field(arg, 'job-name'))),
                  key=lambda s: s.lower())
示例#28
0
def f1(arg):
    return list(unique(list(field(arg, "job-name")), ignore_case=True))
示例#29
0
文件: ex_6.py 项目: Eyphie/lab4
def f1(arg):
    return sorted(unique([i for i in field(arg, 'job-name')],
                         ignore_case=True),
                  key=lambda x: x.lower())
示例#30
0
文件: ex_6.py 项目: sokolovia/ex-lab4
def f1(arg):
    return list(unique(sorted(field(arg, "job-name"))))