我应该选择哪种脚本语言?
我需要这样一种脚本语言:
- 擅长字符串操作;
- 易于写入/读取测试文件;
- 容易学习。
有什么建议吗?
I need such a scripting language which is:
- good at string operation;
- easy to write/read test files;
- easy to learn.
Any recommendations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会说Python。它很容易学习,有可爱清晰的语法,大量扩展其功能的模块,并且 - 如果你想开发网络 - 有 Django,我最近一直在学习它。这是一个很棒的网络应用框架。
我一点也不后悔学习 Python,并且做了我想做的一切。错误处理也很棒 - 我觉得用 Python 编程比用 PHP 编程安全得多,在我看来,PHP 的错误处理非常差。
我不会选择 Perl,但它是一个选择。我发现 Perl 看起来像是有人将代码写入文件中。 Ruby 在网络用户中很流行,但它在性能方面并不出色,如果您非常想要网络上的东西 - PHP 是最佳选择(尽管正如我上面所说,Django 与 Python 的结合非常出色)。
总的来说,我会选择Python,但每种语言都有优点和缺点。
I'd say Python. It's easy to learn, has lovely clear syntax, tonnes of modules that extend its functionality and - should you want to develop for the web - there's Django, which I've been learning recently. It's a great webapp framework.
I don't regret learning Python one bit and does everything I'd want. The error handling is fantastic too - I feel much safer programming in Python than I do in PHP, where the error handling is pretty poor, in my opinion.
I wouldn't go with Perl, but it is an option. I find Perl looks like someone vomitted code into a file. Ruby is popular among web-people, but it's not fantastic performance-wise and if you want something very much for the web - PHP is the way to go (though as I said above, Django is amazing with Python).
Overall, I'd go with Python but there are pros and cons of each.