Python123題庫完美答案——將形如 5D, 30s 的字符串轉爲秒

結果正確-100% 代碼規範-100% 題目連接(請點擊)python import sys def convert_to_seconds(time_str): time_str = time_str.lower() if time_str[-1] == "s": return float(time_str.replace('s', '')) elif
相關文章
相關標籤/搜索