在文件optr

编程入门 行业动态 更新时间:2024-10-27 13:24:07
文件optr_assigment.py中进行Python编译器调试[复制](Debug at Python Compiler at file optr_assigment.py [duplicate])

这个问题在这里已经有了答案:

如何在Python 3 9答案中 使用raw_input

我想调试我的python文件时看到错误:

C:\py>python optr_assigment.py<br> **Traceback (most recent call last):<br> File "optr_assigment.py", line 43, in <module><br> aplikasi = DemoOperator()<br> File "optr_assigment.py", line 8, in __in<br> x = raw_input("Masukkan nilai x: ")<br> NameError: name 'raw_input' is not defined**

This question already has an answer here:

How do I use raw_input in Python 3 9 answers

I see that error when i want to debug my python file:

C:\py>python optr_assigment.py<br> **Traceback (most recent call last):<br> File "optr_assigment.py", line 43, in <module><br> aplikasi = DemoOperator()<br> File "optr_assigment.py", line 8, in __in<br> x = raw_input("Masukkan nilai x: ")<br> NameError: name 'raw_input' is not defined**

最满意答案

Python 3将raw_input更改为input 。

我如何在Python 3中使用raw_input

Python 3 changed raw_input to input.

How do I use raw_input in Python 3

更多推荐

本文发布于:2023-08-06 18:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1453894.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   optr

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!