小结: 1.UNICODE 字符集编码的标准有很多种,比如:UTF-8, UTF-7, UTF-16, UnicodeLittle, UnicodeBig 等: 2 服务器->网页 utf-8 文本->内存 unicode 3 python ord-chr作用 def chr(*args, **kwargs): # real signature unknown """ Return a Unicode string of one character with or
public class Test { //要进行截取操作的字符串 static String ss; //截取的字符串的字节数 static int n; public static void main(String[] args) { System.out.println("请输入字符串:"); //从键盘获取字符串 Scanner scStr = new Scanner(System.in); //将Scanner对象中的内容以字符串的形式取出来 ss = scStr.next(