-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathex9.py
More file actions
35 lines (31 loc) · 821 Bytes
/
ex9.py
File metadata and controls
35 lines (31 loc) · 821 Bytes
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
#Here's some new strange stuff, remember type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
localdays = "周一 周二 周三 周四 周五"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "这是本地化的日期方式: ", localdays
print "Here are the months:", months
print """
There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
"""
'''
Result:
Here are the days: Mon Tue Wed Thu Fri Sat Sun
这是本地化的日期方式: 周一 周二 周三 周四 周五
Here are the months: Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
'''