Files
Yudong Jin 2f561d3d51 feat(ko): add the Korean online edition (#2006)
* feat(ko): add the complete Korean online edition

* Use UTF-8 for Python CI output on Windows

* Remove print-book promotion from the Korean site

* fix(ko): preserve emphasis before Korean particles
2026-10-29 03:46:43 +08:00

21 lines
524 B
Python

# File: vertex.py
# Created Time: 2023-02-23
# Author: krahets ([email protected])
class Vertex:
"""정점 클래스"""
def __init__(self, val: int):
self.val = val
def vals_to_vets(vals: list[int]) -> list["Vertex"]:
"""값의 리스트 vals를 입력받아 정점 리스트 vets 반환"""
return [Vertex(val) for val in vals]
def vets_to_vals(vets: list["Vertex"]) -> list[int]:
"""정점 리스트 vets를 입력받아 값의 리스트 vals 반환"""
return [vet.val for vet in vets]