Removing characters after digit in Python

时间:2019-05-19 04:05:56

标签: python string date

Looking for a simple way to remove the characters after digits in Python. For example:

'May 25th'

I want to read 'May 25'.

Looking for a way to remove any strings after the integer. Thanks in advance.

0 个答案:

没有答案