esdion 發表於 2026-1-18 13:34

LinError.txt

try:
    with open('LinError.txt', 'r', encoding='utf-8', errors='ignore') as f:
      content = f.read()

    print(f"File size: {len(content)} bytes\n")
    print("First 500 characters:")
    print("-" * 70)
    print(content[:500])
    print("\n" + "=" * 70)

    # Look for error messages
    print("Error Messages Found:")
    print("-" * 70)

    if "Error" in content:
      print("Found 'Error' in file")

    if "錯誤" in content or "错误" in content:
      print("Found Chinese error characters")

    if "Exception" in content:
      print("Found 'Exception' in file")

    # Try to extract key information
    print("\nKey Information:")
    print("-" * 70)

    lines = content.split('\n')
    for i, line in enumerate(lines[:20]):
      if line.strip():
            print(f"Line {i}: {repr(line[:100])}")

except Exception as e:
    print(f"Error reading file: {e}")
    import traceback
    traceback.print_exc()
PYEOF

fdbggeca 發表於 2026-1-19 04:09

搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖搖
頁: [1]
查看完整版本: LinError.txt