Skip to main content

dat-tinhtoan

Thư viện Python nhỏ gồm 4 phép tính cơ bản và 2 hàm tính hình chữ nhật.

Cài đặt

pip install dat-tinhtoan

Sử dụng

import dat_tinhtoan as dt

print(dt.tong(8, 2))            # 10
print(dt.hieu(8, 2))            # 6
print(dt.tich(8, 2))            # 16
print(dt.thuong(8, 2))          # 4.0
print(dt.chu_vi_hcn(8, 2))      # 20
print(dt.dien_tich_hcn(8, 2))   # 16
Hàm Công thức
tong(a, b) a + b
hieu(a, b) a - b
tich(a, b) a * b
thuong(a, b) a / b (lỗi nếu b = 0)
chu_vi_hcn(dai, rong) 2 * (dài + rộng)
dien_tich_hcn(dai, rong) dài * rộng

Release files for dat-tinhtoan 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dat-tinhtoan 0.1.0
File Size Uploaded
dat_tinhtoan-0.1.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dat-tinhtoan 0.1.0
File Interpreter ABI Platform
dat_tinhtoan-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 kB

Release files / dat_tinhtoan-0.1.0.tar.gz

Download URL dat_tinhtoan-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2b5509b79c0f3588cbebe07eca4a538ac4c666755e59e0c121fbdc7e87fd214
BLAKE2b-256 checksum
How to use checksums
7c1b14510deac8148813643e8f59bc4d2d030151ac0060a53e121a091b56227c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / dat_tinhtoan-0.1.0-py3-none-any.whl

Download URL dat_tinhtoan-0.1.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c9b0c3f63869ad1e5b5f38c8bd382802c8b0ba528642414d9321e7589c67473
BLAKE2b-256 checksum
How to use checksums
dd197c3add5952295a58163ff1855e3f67ecf4be5b98e75701b751d22300df11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page