python--重温helloword

在今天下午突然燃起了对python的激情,因为之前学过,也不是太深入,现在,我要立志每天写一下python,因为我相信python在未来将会非常出色的语言;

  然后上官网下载了3.8版本的,下载的速度慢的让我烦躁.......

  安装完成后,cmd输入“python”

 啊,此时的我无比的兴奋,无比的骄傲,无比的自豪........哎?怎么打印helloword来着?

>>> print("hello word)
  File "<stdin>", line 1
    print("hello word)
                     ^
SyntaxError: EOL while scanning string literal

。。。。。

噢,我知道了,应该是这样!!!

>>> print "hello word"
  File "<stdin>", line 1
    print "hello word"
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello w
ord")?

。。。。

噢,我又知道了,是这样!!!

>>> print("helloword")
helloword
>>>

啊,此时的我又无比的兴奋,无比的骄傲,无比的自豪........

每天一练!!前进!!

原文地址:https://www.cnblogs.com/RorinL/p/12917717.html