---
title: "NameError: name 'raw_input' is not defined"
author: "平淡-幕"
date: "2014-03-10T13:45:48Z"
tags: ["Python"]
categories: ["编程语言"]
slug: "nameerror-name-raw-input-is-not-defined"
draft: false
lastmod: "2014-03-10T13:45:48Z"
id: 2028812
url: "https://guifan.iteye.com/blog/2028812"
---

版本：Python 3.3.4

错误：name 'raw\_input' is not defined

原因：版本3.X 中去掉了raw\_input 函数，改用input。