他的回复:
1、语言:C#2、祝福语:华为云给您拜年啦:祝您猪事顺利!猪事大吉!猪福永远!3、编程语言using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace hw2019NewYear { class Program { static int len = 56; static void Main(string[] args) { fu(); Console.WriteLine(); string zf = "华为云给您拜年啦:祝您猪事顺利!猪事大吉!猪福永远!"; for (int i = 0; i len / 2 - zf.Length / 2; i++) { Console.Write(" "); } Console.Write(zf); Console.WriteLine(); string sign = "By motozilog "; for (int i = 0; i (len - (sign.Length / 2)); i++) { Console.Write(" "); } Console.Write(sign); Console.ReadKey(); } private static void fu() { Bitmap bmp = new Bitmap(len, len); Graphics g = Graphics.FromImage(bmp); g.DrawLine(new Pen(Brushes.Black), 0, len / 2, len / 2, 0); g.DrawLine(new Pen(Brushes.Black), len / 2, 0, len, len / 2); g.DrawLine(new Pen(Brushes.Black), len, len / 2, len / 2, len); g.DrawLine(new Pen(Brushes.Black), len / 2, len, 0, len / 2); g.DrawString("福", new Font("黑体", 24), Brushes.Black, new PointF(5, 11)); bmp.RotateFlip(RotateFlipType.Rotate270FlipX); for (int w = 0; w bmp.Width; w++) { for (int h = 0; h bmp.Height; h++) { Color color = bmp.GetPixel(w, h); if (color.ToArgb() == 0) { Console.Write(" "); } else { Console.Write("福"); } } Console.WriteLine(); } } } }4、微信号:liangyixin1984 (欢迎加我微信交流机器学习、深度学习、NLP) 华为云用户名:motozilog