24
老麦克唐纳函数
用您选择的语言创建一个函数,该函数将输出以下内容: Old MacDonald had a farm, E-I-E-I-O, And on that farm he had a cow, E-I-E-I-O, With a moo moo here and a moo moo there, Here a moo, there a moo, everywhere a moo moo, Old MacDonald had a farm, E-I-E-I-O! 例如,其中cow和moo是函数参数中的字符串,可以更改为pig和oink或sheep和baa。 它应考虑大写字母,连字符,标点符号,空格和换行符。 旨在在代码中键入最少的Unicode字符。