运维工程师为什么要学python
发布网友
发布时间:2022-04-21 11:41
我来回答
共3个回答
热心网友
时间:2022-04-07 13:25
Python本身的优点就是简单、易学、速度快、免费、开源、高层语言、可移植性、解释性、可扩展性、可嵌入性、丰富的库、独特的语法,因此成为现在编程的必备语言。作为胶水语言,它能够把其他语言制作的各种模块轻松联结在一起,比如C、Java,Python的魅力更加独特,其他语言几百行、几千行完成的任务,Python只需要十几行即可。
为什么学习Python?是因为Python在系统运维上的优势在于其强大的开发能力和完整的工业链,它的开发能力远强于各种shell和Perl,由于shell本身的可编程能力较弱,对很多日常维护中需要的特性支持不够,也没有现成的库可以借鉴,各种功能都需要从头写起,所以说shell脚本力量不够。
Python除了易读、易写更兼具面向对象和函数式风格,还有不错的编程语言,已经成为IT运维、科学计算、数据处理、人工智能等领域的主要编译语言。
热心网友
时间:2022-04-07 14:43
纯粹的运维,发展肯定不如会开发的运维好!
一些运维的小工具,自己能开发最好了
如果一个运维,能有不错的开发基础,可以更深入的参与到项目的开发中,能理解软件开发的需求和难题,能跟得上开发的思维,能更好的跟开发沟通!
最重要的是,能吹牛B,能涨工资!
最近运维自动化,非常火,然后其中以Python占多,因为Python的是一种胶水式的语言,什么都能做!
Python简单易学,代码容易读!
热心网友
时间:2022-04-07 16:18
>>> import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!