#Another type of error
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(
The format of the code is as follows:
print "File %s not exist" % filename
。。。
print '-------xxx------'
change to
print ("File %s not exist" % filename)
print ('-------xxx------')
Similar Posts:
- [Solved] PythonTypeError: ‘<' not supported between instances of 'str' and 'int'
- Python:IndentationError: expected an indented block
- [design and development] Python learning notes – Super () argument 1 must be type, not classobj
- Python uses decorator and reports error typeerror: ‘nonetype’ object is not callable ‘
- Python TypeError: not all arguments converted during string formatting
- [Solved] MacOS Monterey Use bizhub C308 to Print PDF Error: offending command: binary token type 151
- TypeError: not enough arguments for format string
- [Solved] pip Install Error: is not a supported wheel on this platform
- [Solved] Typeerror: incorrect padding occurred in python3 Base64 decoding
- Python: How to Solve raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decoder…