为什么 Tk() 和 StringVar() 大写

问题描述

Tk() 有大写的 T 而不是小写的 Tk() 有什么特殊原因吗?

解决方法

根据 PEP8,classes should be named using CapWords

type variable names 也一样。