File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ #------------------------------------------------------------------------------------------------单行注释 start
2+ # Python中单行注释以 # 开头
3+ # 这是一个注释
4+ print ("Hello, watermelon!" )
5+ #------------------------------------------------------------------------------------------------单行注释 end
6+
7+ #------------------------------------------------------------------------------------------------多行注释 start
8+ # ---------------------------------------------------------------三个单引号
9+
10+ '''
11+ 这是多行注释,用三个单引号
12+ 这是多行注释,用三个单引号
13+ 这是多行注释,用三个单引号
14+ '''
15+ print ("Hello, watermelon!" )
16+
17+ # ---------------------------------------------------------------三个双引号
18+
19+ """
20+ 这是多行注释,用三个双引号
21+ 这是多行注释,用三个双引号
22+ 这是多行注释,用三个双引号
23+ """
24+ print ("Hello, watermelon!" )
25+ #------------------------------------------------------------------------------------------------多行注释 end
You can’t perform that action at this time.
0 commit comments