笨方法学python - 01

一、 第一个程序

 

输入:

print('Hello World!')
print('Hello Again!')
print('I like typing this.')
print('This is fun.')
print('Yay! Printing.')
print("I'd much rather you 'not'.")
print("I 'said' do not touch this.“)

 

结果:

Hello World!
Hello Again!
I like typing this.
This is fun.
Yay! Printing.
I'd much rather you 'not'.
I 'said' do not touch this.

  

Notepad++ 为文本编辑器,文本编辑器最左边为行号,用于方便对代码具体的某一行进行讨论。

井号 caret/octothorpe(八角帽)/pound(英镑符)/hash(电话的#键盘)/mesh(网) characters
双引号 double-quote
语法错误 SyntaxError

在遇到编码错误时,请在py脚本的最上行加入:-*-coding:utf-8-*-
posted @ 2018-07-18 09:29  dsein_chen  阅读(126)  评论(0)    收藏  举报