📅  最后修改于: 2022-03-11 14:46:43.281000             🧑  作者: Mango
代码示例1
def format_age(s):
chars = list(s) # list of characters
digit_chars = [c for c in chars if c.isdigit()]
return int("".join(digit_chars))