函数工作流 FunctionGraph-Python语言的函数中,中文注释报乱码错误

时间:2025-02-12 15:01:36

Python语言的函数中,中文注释报乱码错误

使用Python语言在线编辑代码,需要输出中文时,请在编辑器中增加如下代码:
# -*- coding:utf-8 -*-import jsondef handler (event, context):output = 'Hello message: ' + json.dumps(event,ensure_ascii=False)return output

support.huaweicloud.com/functiongraph_faq/functiongraph_03_0345.html