triangle/python_gui/gui/test2.py

6 lines
97 B
Python

import re
a = 'v0.10'
b =''.join(re.split(r'[^A-Za-z]', a))
print(b)
a = a.replace(b,'')
print(a)