refactor: improve code readability and error handling in table.py

- Reformatted import statements for better organization.
- Enhanced error handling in file reading functions to provide clearer logging.
- Introduced a new `_safe_read_file` function to handle multiple encoding attempts when reading files.
- Updated the `compare_csv` function to utilize the new file reading method, improving robustness.
- Ensured consistent return values across functions, replacing `0.` with `0.0` for clarity.

These changes maintain existing logic while improving code maintainability and readability.
This commit is contained in:
yuanmengqi
2025-07-16 18:11:05 +00:00
parent a9c1c6135a
commit 2a48500691

File diff suppressed because it is too large Load Diff