• 瀏覽: 1,970
  • 回覆: 5
我見到一句
count+= func()


乜function 是可以加的嗎?



the result returned from the function, is to be added on, and the final result is then to be stored on the variable "count". 


引用:
原帖由 蟹於海 於 2024-1-10 01:40 發表

the result returned from the function, is to be added on, and the final result is then to be stored on the variable "count". 
乜function 一定return 1 的?



睇func() return乜


[隱藏]
引用:
原帖由 Zzlaz 於 2024-1-10 09:20 發表

睇func() return乜
係喎!多謝



引用:
原帖由 蟹於海 於 2024-1-10 01:40 發表

the result returned from the function, is to be added on, and the final result is then to be stored on the variable "count". 
係喎。多謝!