When printing the list using the prettytable library, I accidentally found that the same Chinese and English mixed string table can be aligned and displayed on the Windows console and NotePad++, but cannot be displayed on SublimeText3 and EmEditor:
Windows console (can be aligned and displayed):
EmEditor (cannot be displayed aligned):
SublimeText3 (Unable to align the display before the software parameters are modified):
NotePad++ (Can align display)
SublimeText3 parameter modification method: Prefernces>Settings
add statement as shown below:
"font_options":["gdi"]
SublimeText3 can be aligned and displayed after modifying the software parameters (it can be aligned and displayed before the software parameters are not modified):
Test string (UTF-8):
+------------------+------------+---------------+---------------+
| "质量流量(kg/s)" | "雷诺数" | "湍流强度(%)" | "水力直径(m)" |
+------------------+------------+---------------+---------------+
| 0.04 | 9779814.46 | 2.14 | 0.0 |
| 0.04 | 9779814.46 | 2.14 | 0.0 |
| 0.04 | 9779814.46 | 2.14 | 0.0 |
| 0.05 | 10594799.0 | 2.12 | 0.01 |
+------------------+------------+---------------+---------------+
-------------+------------+---------------+---------------+