Chenct-jonathan / pyLiteracy

A Linguistics-Based Mandarin Grammar Checker
MIT License
9 stars 3 forks source link

編碼檔頭 #2

Closed Droidtown closed 1 year ago

Droidtown commented 1 year ago

https://github.com/Chenct-jonathan/Loc_zai_and_Rep_zai_parser/blob/a457cde33349f59c50d4166ba10aa2ec3504ba2e/toolbox/text_tool.py#L1

強烈建議在設計 NLP 的相關程式時,在檔頭加上

#!/usr/bin/env python3
# -*- coding:utf-8 -*-

以免在某些機器上發生莫名奇妙的編碼錯誤。

Chenct-jonathan commented 1 year ago

fixed