---
title: "python字符串与数字的转化"
author: "cai555"
date: "2009-04-20T16:07:48Z"
tags: ["Python"]
slug: "python"
draft: false
lastmod: "2009-04-20T16:07:48Z"
id: 371152
url: "https://cai555.iteye.com/blog/371152"
---

数字变为字符串 str（）  
字符串变为数字 string.atoi（s,\[，base]) //base为进制基数