麦田

不积跬步无以至千里.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
internal class Program
{
    static void Main(string[] args)
    {
        try
        {
            Fun0();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
        Console.ReadKey();
    }

    static void Fun0()
    {
        Fun1();
    }

    static void Fun1()
    {
        Fun2();
    }

    static void Fun2()
    {
        //throw new Exception("抛出异常");
        Fun3();
    }

    static void Fun3()
    {
        int a = 0;
        int b = 1 / a;
        Console.WriteLine("hellow");
    }
}

 

posted on 2025-05-02 00:29  一些记录  阅读(13)  评论(0)    收藏  举报