-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.py
More file actions
36 lines (30 loc) · 809 Bytes
/
Copy pathfunction.py
File metadata and controls
36 lines (30 loc) · 809 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
36
# def area(width, height):
# return width * height
#
#
# def print_welcome(name):
# print("Welcome", name)
#
# w ,h = 6,'da'
# print("width =", w, " height =", h, " area =", area(w, h))
# 可写函数说明
# def printinfo(sex,age,name='e'):
# "打印任何传入的字符串"
# print("名字: ", name);
# print("年龄: ", age);
# print("性别: ", sex);
# return;
#
#
# # 调用printinfo函数
# printinfo(1,1);
# print("------------------------")
# printinfo("runoob");
# questions = ['name', 'quest', 'favorite color',1]
# answers = ['lancelot', 'the holy grail', 'blue',1]
# for q, a in zip(questions, answers):
# print('What is your {0}? It is {1}.'.format(q, a))
if __name__ == '__main__':
print('程序自身在运行')
else:
print('我来自另一模块')