C#控制台输出图形文字

 

 如图,今天在一个群里面有位小伙伴问这个字是怎么输出的,说实话我一直以为是自行拼装的,但是后面有位小伙伴的回复引起了我的注意:

Console.WriteAscii("free sql", Color.Yellow);

经过研究发现需要先引入nuget包

<PackageReference Include="Colorful.Console" Version="1.2.15" />

然后C#代码输出如下:

Colorful.Console.WriteAscii("free sql", Color.Yellow);

 

posted @ 2022-01-18 09:03  段江涛IT  阅读(384)  评论(0编辑  收藏  举报
页脚HTML代码