#!/usr/bin/python # -*- coding: UTF-8 -*- """ @author: Roc-xb """ if __name__ == '__main__': s = "ab1c3d4%a90" for c in s: if '0' <= c <= '9': print(c, end='')