Python编程:怎么用array对象fromunicode()方法

2024-10-14 01:28:14

1、首先在PyCharm软件中,打开一个Python项目。

Python编程:怎么用array对象fromunicode()方法

3、在python文件编辑区中,输入:“from array import *”,导入 array 模块内容。

Python编程:怎么用array对象fromunicode()方法

5、插入语句:“arr.fromunicode('world')”,点击Enter键。

Python编程:怎么用array对象fromunicode()方法

7、在编辑区域点击鼠标右键,在弹出菜单中选择“运行”选项。

Python编程:怎么用array对象fromunicode()方法
猜你喜欢