摘要: def dispatch_dict(operator, x, y): return { 'add': lambda: x + y, 'sub': lambda: x - y, 'mul': lambda: x * y, 'div': lambda: x / y, }.get(operator, la 阅读全文
posted @ 2021-06-02 15:14 vivi~ 阅读(168) 评论(0) 推荐(0) 编辑