Python 学习笔记-错误记录
2017-12-17 19:25
441 查看
错误1:
SyntaxError:Missing parentheses in call to ‘paint’ . Did you mean print(“hello world”);?
错误解析:在调用“paint”时缺少圆括号。
上面的语法在python3中是错误的。在python3中,你需要将helloworld加括号。
错误2:
print "hello world!";
SyntaxError:Missing parentheses in call to ‘paint’ . Did you mean print(“hello world”);?
错误解析:在调用“paint”时缺少圆括号。
上面的语法在python3中是错误的。在python3中,你需要将helloworld加括号。
print ("hello world!");
错误2:
相关文章推荐
- python学习-错误记录-打印多个变量时少了comma,逗号
- python错误和异常学习笔记
- Python学习笔记(八):面向对象编程、错误调试和测试(快速入门篇)
- Python学习过程中的错误记录——有关elif
- Python学习笔记——一些常用函数、常见错误总结
- python学习笔记(八) - 错误、调试、测试
- 【PIC32学习笔记】错误疑问记录手册
- Python错误、调试和测试——学习笔记
- Python3学习笔记06-循环设计、循环对象、函数对象、错误处理、动态类型
- python学习笔记之调用eval函数出现invalid syntax错误问题
- 【Python学习笔记】错误、调试和测试
- python学习笔记,以此开始记录自己的python学习过程
- python 学习笔记记录(一)
- 【Python学习笔记】macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- Python学习笔记(一) -- Python封装日志记录
- python 学习笔记记录(二)
- python学习笔记1--风格及错误
- python学习笔记(1)-错误处理、调试和测试
- 树莓派学习笔记——Python SQLite插入温度记录
- “笨办法学python”学习笔记-错误整理