更新时间:2025-01-07 GMT+08:00
Python语言的函数中,中文注释报乱码错误
使用Python语言在线编辑代码,需要输出中文时,请在编辑器中增加如下代码:
# -*- coding:utf-8 -*- import json def handler (event, context): output = 'Hello message: ' + json.dumps(event,ensure_ascii=False) return output
父主题: 配置函数