---
title: "python中布尔量和整型的关系"
author: "conjohn668"
date: "2010-09-12T00:26:13Z"
tags: []
categories: ["编程语言"]
slug: "python"
draft: false
lastmod: "2010-09-12T00:26:13Z"
id: 761173
url: "https://conjohn668.iteye.com/blog/761173"
---

```
>a = True
>b = True
>int(a)
1
>a+b
2
```