sage math软件:使用cli界面,是&&支持操作员(即“背景和控制”?)功能吗?

发布于 2024-10-02 15:43:25 字数 428 浏览 0 评论 0原文

我是Sage 数学软件的新手。我一直在查看 sage 文档,以查找 sage cli 是否支持以任何方式依次运行多个命令,即使用 && 时的行为类似于 bash。操作员。例如,在 Linux 上:

$ cp file1 file2 && rm file1 

在命令行将 file1 复制到 file2,操作完成后删除 file1。例如,我希望能够

sage: g = e^-x && g && x = g

根据圣人提示做类似的事情。

圣人支持这个吗?如果没有,有解决方法吗?

谢谢。

I'm new to sage math software. i've been looking though sage documentation to find if the sage cli supports any way to run multiple commands one after another, i.e. behave like bash when using the && operator. for example, on linux:

$ cp file1 file2 && rm file1 

at the command line will copy file1 to file2 and after that operation is complete delete file1. for instance i would love to be able to do something like

sage: g = e^-x && g && x = g

from a sage prompt.

Does sage support this? is there a workaround if not?

thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的笑 2024-10-09 15:43:25

所以,“;”符号(分号)用来代替我习惯使用 && 的地方使用 bash 似乎可以解决问题。如果有任何我不知道的差异,我将不胜感激。

so, the ";" symbol(semicolon) used in place of where i'm used to using && using bash seems to do the trick. if there are any differences i'm not aware of, i'd appreciate the info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文