摘要
Python语言是一个强大的面向对象程序设计语言,具有可扩展性,可嵌入性,以及丰富的计算生态等特点,目前已广泛应用于各个领域.但其高度的抽象却带来巨大的性能代价.如何进行高性能编程是亟待深入研究的方向.字符串操作是数据处理中最常见的,针对字符串拼接操作的三种方式进行实验对比,这次实验研究对于使用Python作为大数据处理工具的代码优化具有一定的指导意义.
Python is a powerful object-oriented programming language. It has the characteristics of scalability,embeddedness,and rich computing ecology. It has been widely used in various fields. However,its high abstraction brings huge performance costs. How to perform high performance programming is the direction to be further studied. String manipulation is the most common method in data processing. In this paper,three methods of string splicing are compared. This experimental study has a certain guiding significance for code optimization using Python as a large data processing tool.
作者
郑明秀
ZHENG Ming-xiu(School of Computer Science and Technology,Southwest Minzu University,Chengdu 610041,P.R.C.)
出处
《西南民族大学学报(自然科学版)》
CAS
2019年第1期72-75,共4页
Journal of Southwest Minzu University(Natural Science Edition)
基金
国家社科基金重大招标项目(17ZDA160)