-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtemplate_demon.py
More file actions
32 lines (29 loc) · 991 Bytes
/
Copy pathtemplate_demon.py
File metadata and controls
32 lines (29 loc) · 991 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
# template = """
# 尊敬的%s:
# 我们将于%s在%s举办毕业典礼,邀请您昨晚这次典礼的观礼嘉宾
# %s
# """
#
# print(template%("懒洋洋","1888-02-04","羊村大酒店","灰太狼"))
#
# template = """
# 尊敬的%(name)s:
# 我们将于%(time)s在%(address)s举办毕业典礼,邀请您昨晚这次典礼的观礼嘉宾
# 受邀嘉宾名单:
# %(name)s
# %(name)s
# %(name)s
# %(name)s
# %(yours)s
# """
#
# print(template%{"name":"懒洋洋","time":"1888-02-04","address":"羊村大酒店","yours":"灰太狼"})
# import os
#
# BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# print(os.path.abspath(__file__)) #返回绝对路径
# print(os.path.dirname(os.path.abspath(__file__))) #返回目录
# print(BASE_DIR)
# print(os.path.join(BASE_DIR,"hhhhh"))
for i in enumerate("abc",2):
print(i)