第一種方法:https://blog.csdn.net/m0_37725003/article/details/80904824html
第二種方法:https://www.cnblogs.com/cxk1995/p/5800196.html(簡單一些).net