vbs:- Dim inpStr, Arr, Str
- inpStr = InputBox("请输入要转换的字符串")
- Arr = split("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ",")
- For Each Str In Arr
- inpStr = Replace(inpStr, Str,"@#$&")
- inpStr = Replace(inpStr, UCase(Str), Str)
- inpStr = Replace(inpStr, "@#$&", UCase(str))
- Next
- MsgBox inpStr
复制代码
|