• Home
  • About
    • Seokmin.Lee photo

      Seokmin.Lee

      Hello, I am a master's student in the Department of Convergence Security (Samsung Advanced Security) at Korea University.After graduation, I am expected as a security developer or researcher member of Samsung SDS.

    • Learn More
    • LinkedIn
    • Github
  • Posts
    • All Tags

[coding Test]python_code_note_1

16 Aug 2021

1차원 list 초기화 선언

visited = [False] * 9 #[0,0,0,0,0,0,0,0,0]

2차원 list 빠른 행 선언

graph = [[]*n for _ in range(n)]
graph[0].append(0)
graph[1].append(0)
graph[2].append(0)

2차원 list중 중복제거

whitelists = list(set([tuple(set(whitelist)) for whitelist in whitelists]))

시간형태 비교

all_indicies = sorted(all_indicies, key=lambda x: datetime.datetime.strptime(x, 'winlogbeat-%Y.%m.%d'))


pythoncoding-test Share Tweet +1