为什么python绘制时钟时初始化指针需要使用global函数
收起
这是全局变量,否则函数内部的变量,外部是用不到的
def func() global n ......
global n 声明全局变量了才能在外部用到
报告相同问题?