str = 'helloworld'.
截取:
str1 = str+0(5). "此时str1的值为'hello'
str2 = str+5(5). "此时str2的值为'world'
str3 = str(5). "此时str3的值为'hello'
替换:
str0 = 'hello'.
str4 = str.
str4+5(5) = str0."此时str4的值为'hellohello'
获取长度:
strlen( str )."strlen( str )的值为10
str = 'helloworld'.
截取:
str1 = str+0(5). "此时str1的值为'hello'
str2 = str+5(5). "此时str2的值为'world'
str3 = str(5). "此时str3的值为'hello'
替换:
str0 = 'hello'.
str4 = str.
str4+5(5) = str0."此时str4的值为'hellohello'
获取长度:
strlen( str )."strlen( str )的值为10