Python会是Windows命令行/批处理脚本的好代替吗? [英] Would Python make a good substitute for the Windows command-line/batch scripts?

查看:719
本文介绍了Python会是Windows命令行/批处理脚本的好代替吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些 Bash 的经验, t头脑,但现在我做了很多Windows开发我需要做基本的东西/写基本脚本使用
Windows命令行语言。由于某种原因,所说的语言真的让我很兴奋,所以我正在考虑学习Python并使用它。

I've got some experience with Bash, which I don't mind, but now that I'm doing a lot of Windows development I'm needing to do basic stuff/write basic scripts using the Windows command-line language. For some reason said language really irritates me, so I was considering learning Python and using that instead.

Python适合这样的事情吗?移动文件,创建脚本以执行解压缩备份和还原SQL数据库等操作。

Is Python suitable for such things? Moving files around, creating scripts to do things like unzipping a backup and restoring a SQL database, etc.

推荐答案

Python非常适合对于这些任务,我猜想比Windows批处理文件更容易开发和调试。

Python is well suited for these tasks, and I would guess much easier to develop in and debug than Windows batch files.

问题是,我想,确保所有要运行这些脚本的计算机都安装了Python。

The question is, I think, how easy and painless it is to ensure that all the computers that you have to run these scripts on, have Python installed.

这篇关于Python会是Windows命令行/批处理脚本的好代替吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆