如何让relativdelta获得罗纳尔多和梅西的总比赛时间?
EG。
ronaldo = relativedelta(years=0, months=0, days=0, hours=0, minutes=92)
messi = relativedelta(years=0, months=0, days=0, hours=0, minutes=91)
总计= 3小时05分钟
答案 0 :(得分:2)
您可以简单地将它们添加到一起:
NFA 1:
{<__main__.State object at 0x7f1ce99645c0>: {'a': <__main__.State object at 0x7f1ce9964588>}, <__main__.State object at 0x7f1ce9964588>: {}}
NFA 2:
{<__main__.State object at 0x7f1ce9964668>: {'b': <__main__.State object at 0x7f1ce9964630>}, <__main__.State object at 0x7f1ce9964630>: {}}
NFA 3:
{<__main__.State object at 0x7f1ce99645c0>: {'a': <__main__.State object at 0x7f1ce9964588>}, <__main__.State object at 0x7f1ce9964668>: {'b': <__main__.State object at 0x7f1ce9964630>}, <__main__.State object at 0x7f1ce9964630>: {}}