2022-09-05 22:30:28 +08:00

19 lines
246 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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, '))