软件研发
未定义 标签描述

NameErrorTraceback(mostrecentcalllast)CellIn[5],line86globalVAL7VAL=self.val---->8defmyfun(val=VAL):9print(val) NameError:name'VAL'isnotdefined classMyClass(): def__init__(self): self.val="val" self.read() defread(self): globalVAL VAL=self.val defmyfun(val=VAL): print(val) Theerroryou'reseeingi...

  X5zJxoD00Cah   2023年12月07日   16   0   0 未定义Pythonsed