SORT_ORDER = {"DINT": 0, "INT": 1, "BOOL": 2} mylist.sort(key=lambda val: SORT_ORDER[val[1]]). All we are doing here is providing a new ...
確定! 回上一頁