File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 6
6
- 일반적으로 프로그램이 하는 일을 설명하고 가독성을 높이기 위해 사용
7
7
- 프로그램의 실행 결과에 영향을 끼치지 않음
8
8
- 한 줄 주석 처리할 때 : #
9
- - 여러 줄을 주석 처리할 때 : ''' put comment here ''' 혹은 """ put comment here """
9
+ - 여러 줄을 주석 처리할 때 : ''' comment ''' 혹은 """ comment """
10
10
11
- > ''' put comment here ''' 혹은 """ put comment here """
12
- 이 방식은 실제론 주석 처리가 아닌 put comment here 부분을 텍스트로 만드는 것이다.
11
+ > ''' comment ''' 혹은 """ comment """
12
+ 이 방식은 실제론 주석 처리가 아닌 comment 부분을 텍스트로 만드는 것이다.
13
13
-> 텍스트는 명령 코드가 아니기에 실행중에 영향미치지 않음.
14
14
15
15
@@ -197,6 +197,8 @@ python 으로 산술 예제 :
197
197
- 큰 따옴표로 시작해서 작은 따옴표로 끝내면 문법적 오류
198
198
- 따옴표가 문자열 내에서 사용될 경우를 대비하여 큰/작은 따옴표 둘다 지원
199
199
200
+ <br >
201
+
200
202
Example:
201
203
~~~ python
202
204
>> > print (' hello my name is "python"' )
@@ -207,7 +209,10 @@ hello my name is "python"
207
209
i want printing (' hello my name is "python"' )
208
210
>> >
209
211
~~~
210
- #### 문자열의 연산
212
+
213
+ <br >
214
+
215
+ #### 문자열의 연산
211
216
~~~ python
212
217
>> > a= ' hello'
213
218
>> > a+ ' world!'
@@ -288,12 +293,14 @@ False
288
293
True
289
294
~~~
290
295
296
+ 파이썬:
291
297
| 논리 연산자| 결과|
292
298
| :---| :---|
293
299
| x or y| x 또는 y|
294
300
| x and y| x 그리고 y|
295
301
| not x| x가 아닌|
296
302
303
+ 다른 언어:
297
304
| 논리 연산자| 기호| 예시|
298
305
| :---| :---| :---|
299
306
| or| | ; | x | ; y |
You can’t perform that action at this time.
0 commit comments