Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- mysql
- system
- Pipelining
- computer
- web
- for
- control
- while
- python
- Class
- javascript
- data structure
- MacOS
- DB
- MIPS
- DoM
- html
- XML
- CSS
- function
- DATAPATH
- Linux
- architecture
- Java
- react
- Algorithm
- instruction
- github
- php
- DS
Archives
- Today
- Total
목록Quotient (1)
YYYEJI
[Python] 산술 계산
산술(Arithmetic)에 대해서 예제를 통해서 알아보아요. 더하기(Addtion) add = 1+1 빼기(Subtraction) sub = 1-1 곱하기 (Multiplication) mul = 2*10 나누기(Division) div = 10/2 나누기-몫 (Division-quotient) quo = 7//2 나누기-나머지(Division-remainder) rem = 7%4 제곱(Square) squ = 2**5 기호를 줄여서 사용할 수도 있습니다. add += 2 # add = add + 2 sub -= 2 # sub = sub - 2 mul *- 2 # mul = mul * 2 div /= 2 # div = div / 2 ◡̈
Python
2022. 9. 23. 23:30