Visual Basic中,表达式Right(String(65,Asc("abc")),3)的值是什么,求详解.
1个回答
展开全部
Right(String(65,Asc("abc")),3)一步步来看
1.Asc("abc")=97 取得"a"的ascii值
2.String(65,Asc("abc"))=String(65,97)=string(65,"a") 即65个a的字符串
3.Right(String(65,Asc("abc")),3)=Right("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3)="aaa"
1.Asc("abc")=97 取得"a"的ascii值
2.String(65,Asc("abc"))=String(65,97)=string(65,"a") 即65个a的字符串
3.Right(String(65,Asc("abc")),3)=Right("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3)="aaa"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询