python3 类型提示

在静态编程 如C++ 中 fun( class object),如 fun(int a1, int a2, int a3)

而在python中3.0以前是没有 类型提示的,因为python是动态语言,3.0以后加入了动态提示。

python官方

TaskType is a  Class 

def __init__(self, fp, task_type: TaskType, crmid=None, remote_fileid=None, telnumber=None):

关注公众号 海量干货等你
原文地址:https://www.cnblogs.com/sowhat1412/p/12734316.html