Python基础学习day03
'''可变字符串
>>> import io
>>> s ='hello,sxt'
>>> sio = io.StringIO(s)
>>> sio
<_io.StringIO object at 0x000002814C5AA040>
>>> sio.getvalue()
'hello,sxt'
>>> sio.seek(7)
7
>>> sio.write('g')
1
>>> sio.getvalue()
'hello,sgt'
>>>
'''
# 基本运算符
共有 0 条评论