社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Python

在bash中激活虚拟环境并在一个命令中执行python脚本?

bart cubrich • 3 年前 • 1548 次点击  

说我有文件 /templates/apple 我想

  1. 把它放在两个不同的地方然后
  2. 去掉原稿。

所以 /模板/苹果 将被复制到 /templates/used /templates/inuse 然后我想把原稿去掉。

cp 最好的方法是 rm ? 还是有更好的方法?

我想在一行中完成这一切,所以我认为它看起来像:

cp /templates/apple /templates/used | cp /templates/apple /templates/inuse | rm /templates/apple

这是正确的语法吗?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/129967
 
1548 次点击  
文章 [ 6 ]  |  最新文章 3 年前