Wrong:
#coding:utf-8
import json
class OperetionJson:
def __init__(self,file_path=None):
if file_path == None:
self.file_path = '../dataconfig/user.json'
else:
self.file_path = file_path
self.data = self.read_data();
Right:
```python
#coding:utf-8
import json
class OperetionJson:
def __init__(self,file_path=None):
if file_path == None:
self.file_path = '../dataconfig/user.json'
else:
self.file_path = file_path
self.data = self.read_data()
Read More:
- [Solved] AttributeError: module ‘logging‘ has no attribute ‘Handler‘
- [Solved] AttributeError: ‘DataFrame‘ object has no attribute ‘tolist‘
- [How to Solve]AttributeError: module ‘scipy’ has no attribute ‘io’
- AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘ [How to Solve]
- [Solved] AttributeError: module ‘pandas‘ has no attribute ‘rolling_count‘
- [Solved] Paramiko error: AttributeError: ‘NoneType’ object has no attribute ‘time’
- [Solved]AttributeError: module ‘urllib’ has no attribute ‘quote’
- [Solved] AttributeError: module ‘distutils‘ has no attribute ‘version‘
- [Solved] AttributeError WriteOnlyWorksheet object has no attribute cell
- AttributeError: module ‘time‘ has no attribute ‘clock‘ [How to Solve]
- [Modified] AttributeError: ‘socket‘ object has no attribute ‘ioctl‘ python linux
- [Solved] AttributeError: ‘Manager‘ object has no attribute ‘get_by_natural_key‘
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
- AttributeError: DatetimeProperties object has no attribute
- [Solved] AttributeError: module ‘PIL.Image‘ has no attribute ‘open‘
- [How to Solve]AttributeError: module ‘scipy’ has no attribute ‘stats’
- How to Solve Python AttributeError: ‘dict’ object has no attribute ‘item’
- [Solved] AttributeError: ‘_IncompatibleKeys’ object has no attribute
- [Solved] LeNet Script Train Error: AttributeError: ‘DictIterator’ object has no attribute ‘get_next’
- [2021-10-05] Python Error: AttributeError: ‘NoneType‘ object has no attribute ‘append‘