当前位置 : 主页 > 编程语言 > python >

不能在Python Console中运行pytest

来源:互联网 收集:自由互联 发布时间:2022-07-05
在Python Console中运行pytest发现报错了 这是为什么?因为Python Console已经是进入python之后的环境,就像在python自带的IDLE中运行pytest pytest的运行是不需要进入python环境的,因此可以在Termi

在Python Console中运行pytest发现报错了

不能在Python Console中运行pytest_命令行

 

这是为什么?因为Python Console已经是进入python之后的环境,就像在python自带的IDLE中运行pytest

不能在Python Console中运行pytest_python_02

pytest的运行是不需要进入python环境的,因此可以在Terminal命令行中运行pytest,结果是ok的

不能在Python Console中运行pytest_命令行_03

 

 

 


上一篇:True计算时对应的数字是1,False是0
下一篇:没有了
网友评论