19 lines
246 B
Python
Raw Permalink Normal View History

import PikaStdLib
import PikaStdData as std
import re
s2 = std.String('你好Hello, Bonjour.')
i = 0
for c in s2:
print(i, c)
i += 1
print(s2[2])
s2[2] = ','
print(s2)
s2[2] = ''
print(s2)
print(s2.replace('你好,', 'Hi, '))