Skip to content
Snippets Groups Projects
Commit 012a303c authored by Minseong Kwon's avatar Minseong Kwon
Browse files

Update math 함수.txt 주석 추가

parent 3bdbfa3a
Branches
No related tags found
No related merge requests found
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32 Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information. Type "help", "copyright", "credits" or "license()" for more information.
>>> #count >>> #count #count함수와 replace 활용 예시
>>> a="11111" >>> a="11111"
>>> a.count >>> a.count
<built-in method count of str object at 0x042F2B20> <built-in method count of str object at 0x042F2B20>
...@@ -20,10 +21,11 @@ TypeError: replace() argument 2 must be str, not int ...@@ -20,10 +21,11 @@ TypeError: replace() argument 2 must be str, not int
>>> a.replace("111","2") >>> a.replace("111","2")
'211' '211'
>>> >>>
>>> import math >>> import math #math 함수를 통해 pi값과 sin값 써보기
>>> math.pi >>> math.pi
3.141592653589793 3.141592653589793
>>> import math as m >>> import math as m #impoer math as k 구문 써보기
>>> m.pi >>> m.pi
3.141592653589793 3.141592653589793
>>> import math as k >>> import math as k
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment