或者是十位,或者是百位或者是N位上的数
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
x % 10
楼上正解。
int a = 129 ;Response.Write(a.ToString().Substring(a.ToString().Length-1, 1));