일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 연습
- jQuery
- javascript
- Event
- topdown
- 도린이
- 픽셀
- PYTHON
- wsl
- Lerp
- intervals
- vsCode
- 코딩
- 도트
- className
- getItem
- euler
- 탑다운
- 종속변수
- 독립변수
- Unity
- classList
- Quaternion
- setItem
- 회전
- 2D
- click
- 자주 사용하는 Quaternion 함수
- 웹스크래핑
- addEventListener
Archives
- Today
- Total
쫑가 과정
7가지 연산자를 이용한 계산 실습 본문
https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex
Built-in Types — Python 3.9.5 documentation
The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions. Some collection classes are mutable. The methods that add, subtract,
docs.python.org
- plus,
- minus,
- times,
- division,
- negation,
- power,
- reminder
def plus(a,b):
return(int(a) + int(b))
def minus(a,b):
return(int(a) - int(b))
def times(a,b):
return(int(a) * int(b))
def division(a,b):
return(int(a) / int(b))
def negation(a):
return(-int(a))
def power(a,b):
return(int(a) ** int(b))
def remainder(a,b):
return(int(a) % int(b))
print(plus(1,"2"))
print(minus("3",4))
print(times("5",6))
print(division("7","8"))
print(negation("9"))
print(power("10",11))
print(remainder("13","12"))
---------------------------
3
-1
30
0.875
-9
10
'프로그래밍 공부 > 파이선_정보취합하기' 카테고리의 다른 글
다시 해보는 웹 스크래핑 가상환경 세팅 (1.VSCode에 WSL연동) (0) | 2021.06.14 |
---|---|
마치고. (2) | 2021.05.28 |
4주차 - wsl에서 selenium 인스타 정보 엑셀수집하기 (0) | 2021.05.28 |
3주차 - 쿠팡 정보를 엑셀로 만들기 (0) | 2021.05.20 |
Python 기초 이론 박살내기! (0) | 2021.05.17 |
2주차 연습 - 쿠팡 웹스크래핑 (2) | 2021.05.13 |
2주차_쇼핑페이지 크롤링하기(X) (1) | 2021.05.04 |
1주차_윈도우 Visual Studio Code에 가상환경 설정! (0) | 2021.04.29 |
Comments