Why execute code, in the report is invalid syntax (invalid syntax), the following
The File "string_method03. Py, line 47
If filename. Endswith (' JPG. ') or filename. Endswith (' PNG. ') or filename. Endswith (' BMP.)
^
SyntaxError: invalid syntax
Each a great god, and you will give advice. Thanks
CodePudding user response:
The if... Finally, add a colonCodePudding user response:
If filename. Endswith (' JPG. ') or filename. Endswith (' PNG. ') or filename. Endswith (' BMP.) grammar errors, put in front of the point,, JPG, PNG, the BPMCodePudding user response:
If the back of the colon?CodePudding user response: