python 3为何print ‘Hello,world!’报错?
2018-01-06 12:42
429 查看
python 3里面和python 2的print有了点点区别,print变成了一个函数,如下例子:
>>> print('Hello world!')
Hello world!
''里面为你需要打印的东西,而以前版本 是不需要加外面的括号的哦!
>>> print('Hello world!')
Hello world!
''里面为你需要打印的东西,而以前版本 是不需要加外面的括号的哦!
相关文章推荐
- Python print "hello world" SyntaxError: invalid syntax
- python 3.4.0 简单的print 'hello world',出错--SyntaxError: invalid syntax
- python 3.4.0 简单的print 'hello world',出错--SyntaxError: invalid syntax
- Python 2.7.9 Demo - 001.print_hello_world - 002.print_chinese
- python-gtk-3-tutorial(2)--"Print hello world"
- Python 入门 hello,world SyntaxError: invalid syntax
- Python基础2- Hello,world
- Python基础,Hello,world
- python的hello,world
- (转) Eclipse - Python - Installation of PyDev with a Python Hello World tutorial
- hello world python redis
- 【Hacker Rank】01.Say "Hello, World!" With Python
- [Python 2.7] Hello World CGI HTTP Server
- 20080828 python HelloWorld
- python第一课(hello,world)
- Ubuntu:python helloworld.py SyntaxError: invalid syntax
- python3学习笔记--001--python HelloWorld
- To say "Hello world" in Python CGI Web Programming in 5 minutes
- 【Hello Python World】Class Notes of Week 5
- Python sample code of hudson remote api, my first Python hello world