python变量名支持中文吗

tech2025-05-07  5

今天搬砖调试代码的时候,一行注释没加 # ,结果报错 NameError: name ‘拿到关键词’ is not defined 竟然把中文当成name,我就心血来潮想试试变量名能不能是中文。 先说答案:Yes,absolutely yes! 有图为证:

最新回复(0)