关于英文单词 foo 到底是什么意思
我在很多示例代码都喜欢用这个单词,查了下有道说是函数的意思,感觉在很多示例代码中又不像这个意思
我在很多示例代码都喜欢用这个单词,查了下有道说是函数的意思,感觉在很多示例代码中又不像这个意思
就类似指代人名时候的张三、李四
…he used the word due to having seen it on the bottom of a jade Chinese figurine in San Francisco Chinatown, purportedly signifying “good luck”.[3] If true this is related to the Chinese word fu (“福”, sometimes transliterated foo), which can mean happiness or blessing.
(They have been used to name entities such as variables, functions, and commands whose exact identity is unimportant and serve only to demonstrate a concept.)
https://en.wikipedia.org/wiki/Metasyntactic_variable
算法代码一般用 ijkmn, 而 foo bar 一般的用在 demo code 里