-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex1.py
35 lines (30 loc) · 1.06 KB
/
ex1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
# 加入上面这行确保运行在运行中文时不会出错
# 指令计算机按照指令输出,重点是引号可以是单引号也可以是双引号,但必须对应(注:引号是半角字符而非全角字符);如果计算机提示报错,则按照提示进行检查。
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.'
# 加分题
# 让脚本再多打印一行
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.'
# ‘\n’为换行,‘\t’是tab,‘\\’才是普通字符斜杠\
print ('\n')
# 让脚本只打印一行
print "Hello World!"
print "This is a line,"
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.'