由于逻辑比较简单废话不多说直接上代码:
package main
import (
"bufio"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"unicode"
)
var write *os.File
func IsChineseChar(str string) bool {
for _, r := range str {
if unicode.Is(unicode.Scripts["Han"], r) {
<