在命令行上使用python模块

2024-04-26 23:14:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在命令行上使用pythonre,比如

    $ python3 -m antigravity
    which open [xkcd: Python](https://xkcd.com/353/)

然后我试着re

    import -m re re.findall("\w+") < foo.md
    -bash: syntax error near unexpected token `('

是否可以在命令行中使用模块作为-m antigravity


Tags: 命令行httpsimportrecombashwhichfoo