哪位大佬能解释一下
f1, f2, f3 = count()
和
f1 = count()
f2 = count()
f3 = count()
两种写法之间有什么区别?
你用print(type(f1))打印以下变量的类型就知道区别了
谢谢楼上提醒,似乎我问错了。
不应该问有什么区别,而应该问“为什么会有这种区别呢”?
是
temp = count()
f1=temp[0]
f2=temp[1]
f3=temp[2]
的简便写法,语言特性
感谢膜法师1分有59秒的解答!
Sign in to make a reply
圆圆oO圆圆圆ooO
哪位大佬能解释一下
f1, f2, f3 = count()
和
f1 = count()
f2 = count()
f3 = count()
两种写法之间有什么区别?