NameError:名称“"未定义 [英] NameError: name '' is not defined

查看:330
本文介绍了NameError:名称“"未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用Python编写一个脚本来结合西班牙语动词.这是我第一次使用Python编写脚本,因此这可能是一个简单的错误.运行脚本时,我输入"yo tener"并收到错误:

I am trying to make a script in Python that will conjugate Spanish verbs. This is my first time scripting with Python, so it may be a simple mistake. When I run the script, I input "yo tener" and receive an error:

回溯(最近一次通话最近):"文件第13行,在"文件中, NameError中的第1行:未定义名称"yo"

Traceback (most recent call last): File "", line 13, in File "", line 1, in NameError: name 'yo' is not defined

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆