我是Python新手,在pycharm下做列表联系,代码如下:
# -*- coding:UTF-8 -*-
names=["old_driver","rain","jack","shanshan","peiqi","back_girl"]
names.append("alex")
names[3]="美美"
print(names)
运行结果:
D:\PycharmProjects\study\venv\Scripts\python.exe D:/PycharmProjects/study/day2/liststudy.py
['old_driver', 'rain', 'jack', '\xe7\xbe\x8e\xe7\xbe\x8e', 'peiqi', 'back_girl', 'alex']
Process finished with exit code 0
Why??