python3 类型提示

版权声明:个人学习笔记 https://blog.csdn.net/qq_31821675/article/details/87866762

在静态编程 如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):

猜你喜欢

转载自blog.csdn.net/qq_31821675/article/details/87866762
今日推荐