Reference: http://interactivepython.org/runestone/static/thinkcspy/SimplePythonData/OperatorsandOperands.html (Các bạn nếu đọc tiếng việt xong thì nhớ vào trang chủ nó mà giải bài tập) Operators are special tokens that represent computations like addition, multiplication and division. The values the operator works on are called operands . Các toán tử là những mã đặc biệt thể hiện các phép tính như cộng, nhân và chia. Những giá trị mà toán tử làm việc (tính toán) thì gọi là toán hạng The following are all legal Python expressions whose meaning is more or less clear: Theo những biểu thức Python hợp pháp mà có nghĩa hoặc ít nhiều rõ ràng: 20 + 32 hour - 1 hour * 60 + minute minute / 60 5 ** 2 ( 5 + 9 ) * ( 15 - 7 ) The tokens + , - , and * , and the use of parenthesis for grouping, mean in Python what they mean in mathematics. The asterisk ( * ) is the token for multiplication, and ** is the token fo...
Nhận xét
Đăng nhận xét