ModuleNotFoundError: No module named ‘jsonpath’
The new situation after the last blog about no jsonpath solution
During execution, the console prompts the following error code:
TypeError: write() argument must be str, not bytes
As a beginner, I didn’t understand many copies on CSDN. Then I found the answer I wanted and solved my problem on stackoverflow
Link: typeerror: must be STR, not bytes
The question is like this, cut a picture
The answer is also to the point, cut a picture
The output file should be in binary mode
There is no problem with the console execution after modification
Then I found out from the python document query:
Python: open/file operation
F = open (‘/ TMP/Hello’,’w ‘)
#open (path + file name, read-write mode)
#read-write mode: R read-only, R + read-write, w New (will cover the original file), a append, B binary file. Common modes
Similar Posts:
- Python_:TypeError: write() argument must be str, not int
- Python Open File SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in …
- How to use htmltestrunner.py to report importerror: no module named ‘stringio’ in Python 3
- How to read and write multiple files in Python?
- Two solutions to cross origin read blocking (CORB) blocked cross origin response error of Web Service API
- Python Exception: TypeError: write() argument must be str, not list
- python mac install MySQLdb ModuleNotFoundError No module named ‘ConfigParser’
- python TypeError: an integer is required
- TypeError: strptime() argument 1 must be str, not bytes
- [Solved] wordcount Error: org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: