You can use the pathlib module with suffixes property which returns all the extensions as a list. Using that, we can join into a single string, as shown below.
確定! 回上一頁