Wordclouds进去了。 如何使用 wordCounts := map [ string ] int { "important" : 42 , "noteworthy" : 30 , "meh" : 3 } w := wordclouds . NewWordcloud ( wordCounts , wordclouds . FontFile ( "fonts/myfont.ttf" ), wordclouds . Height ( 2048 ), wordclouds . Width ( 2048 ), ) img := w . Draw () 选件 输出高度和宽度