在Python中,蟒:申请(math.sqrt,(4))将返回 “类型错误:申请()ARG 2预期的序列,发现INT”
apply (math.sqrt ,(4))
(或其他单个参数的函数) 返回
TypeError: apply() arg 2 expected sequence, found int
任何想法为什么? 感谢
在Python中,蟒:申请(math.sqrt,(4))将返回 “类型错误:申请()ARG 2预期的序列,发现INT”
apply (math.sqrt ,(4))
(或其他单个参数的函数) 返回
TypeError: apply() arg 2 expected sequence, found int
任何想法为什么? 感谢
请注意,Python内置'apply'自Python 2.3起弃用,并且已在Python 3中删除 –