from typing import NamedTuple class MyTuple(NamedTuple): name: str high: float start: float end: float t1 = MyTuple('test', 100.1, 90.2, 70.3) print(t1.name) print(t1.high) print(t1.start) print(t1.end) ####结果"""test100.190.270.3"""
python变量、函数、类的命名规则_愿此后再无WA的博客-CSDN博客_python类的命名规则
京公网安备 11010502049817号