Python Structural Pattern Matching

前端 未结 0 940
甜味超标
甜味超标 2021-01-31 02:11

I\'m not able to run this code:

match shape:
    case Point(x, y):
        ...
    case Rectangle(x, y, _, _):
        ...
print(x, y)

I can\'t f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题