python - process.poll() 的类型返回值“returncode”
问题描述
我在哪里可以找到returncode
Process.poll 返回的类型?从文档中“显示”该类型是整数值,因为返回码可能是负数;但是有可能知道确切的类型吗?
我问是因为在我的代码库中我收到警告:
SyntaxWarning: "is" with a literal. Did you mean "=="?
exists = returncode is 0
一旦我知道确切的类型,我想解决这个问题returncode
解决方案
推荐阅读
- google-cloud-dataflow - Google Cloud BigTable:更新列值
- javascript - 使用 Javascript 和动态变量创建表
- android - Android模拟器在启动时不断崩溃
- javascript - 如何获取父元素文本并删除子元素文本 selenium c#?
- javascript - Websockets 可能会干扰 Travis-CI
- c# - C#中的连续循环
- unit-testing - 单元测试 U-sql 脚本
- arrays - 在numpy中以广度优先顺序对树的节点进行排序
- c - 带有 crypt seg 的蛮力算法。过错
- batch-file - 无法使用 FreeDOS 打开和读取文件