Skip to content

中文乱码 #3

@dingyuanhong2006

Description

@dingyuanhong2006

创建文件的同时,需要在open函数中加入 encoding='utf-8'
with open(fileName, "a+",encoding='utf-8') as f:
........

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions