摘要: 可能是python的设计哲学考虑到,要避免快速而肮脏的脚本,而没有static关键字(只有类的静态方法@staticmethod),无现成的类静态变量,如果要使用,可以使用 global 来操作。 import heapq STATIC_EID = 0 class Event: def __init 阅读全文
posted @ 2021-05-19 10:15 VeyronC 阅读(277) 评论(0) 推荐(0) 编辑