-- ============================================= -- 功能:汉字转换成拼音首字母 首字母查 -- ============================================= )='') ) as begin --定义变量 ), @ii int ),) --设置初始值 --开始循环取出没个字符 while @ii<@strlen begin ,,) if @chn>'z' ,@c = case chn when @chn then
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <tit
<script> let a = ""; for (var i = 65; i < 91; i++) { a += String.fromCharCode(i); } alert(a); //大写字母A到Z的ascii码是从65到90 //小写字母a到z的ascii码是从97到122 </script>
for a in range(ord('a'), ord('z') + 1): print(chr(a) , end="") for a in range(ord('A'), ord('Z') + 1): print(chr(a) , end="") #-------------------------------- list = map(chr, range(ord('a'), ord('z') + 1)) for a in list: print(a,end='
A~Z 65~90 a~z 97~122 public class Unicode { public static void main(String[] args) { // TODO Auto-generated method stub int A=32; while (A<=122) { System.out.println((char)A+"数字是"+A); A++; } } } 这是java