移动工具位置

This commit is contained in:
2025-01-23 22:56:14 +08:00
parent b4d092e454
commit b643dbc850
20 changed files with 0 additions and 0 deletions

17
tools/decode_format.py Normal file
View File

@ -0,0 +1,17 @@
import re
def decode_format(value):
match = re.match(r'(\d+):(\d)', value)
if match:
minute = int(match.group(1))
second = int(match.group(2))
time = minute * 60 + second
return time
else:
return None
if __name__ == '__main__':
value = input("输入转换的时间戳:")
print(decode_format(value))