如匹配以trx或者bin结尾的文件。不能使用“|”进行或的处理。只能使用()括号进行处理。str = “hehezgd.bin”if str.endswith(('bin', 'trx'): print ...
確定! 回上一頁