阅读背景:

是否可以为参数指定多个类型提示?

来源:互联网 

Is there a way to add more than one type hinting to a method? For example, foo(param) must receive a instance of string OR bar OR baz.Is there a way to add more than one type hintin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: