0
点赞
收藏
分享

微信扫一扫

python3 类型提示

Android开发指南 2022-03-18 阅读 36


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

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

​​python官方​​

python3 类型提示_动态语言

python3 类型提示_c++_02

TaskType is a  Class 

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


举报

相关推荐

0 条评论