Skip to main content

我的第一个 Python 包

Project description

pypi-test-first

This is a simple Python package that provides basic mathematical operations.

Installation

pip install pypi-test-first

Usage

import pypi_test_first

result = pypi_test_first.add(2, 3)
print(result)  # Output: 5

result = pypi_test_first.subtract(5, 3)
print(result)  # Output: 2

result = pypi_test_first.multiply(2, 3)
print(result)  # Output: 6

result = pypi_test_first.divide(6, 3)
print(result)  # Output: 2.0

Available Functions

  • add(a, b): Returns the sum of a and b.
  • subtract(a, b): Returns the difference between a and b.
  • multiply(a, b): Returns the product of a and b.
  • divide(a, b): Returns the result of dividing a by b. Raises a ValueError if b is zero.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypi_test_first-0.1.2.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypi_test_first-0.1.2-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file pypi_test_first-0.1.2.tar.gz.

File metadata

  • Download URL: pypi_test_first-0.1.2.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypi_test_first-0.1.2.tar.gz
Algorithm Hash digest
SHA256 470355024b100fb581b7fa80d37a93409466f8eb1deb779ad651e5dfcced97b9
MD5 b4fa5aef5d398dd8e0c232f7f9e2ce57
BLAKE2b-256 b7d71a145dee86045e8622b8379cc43c3d1d0cf7690251cc6191bd6774744a00

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypi_test_first-0.1.2.tar.gz:

Publisher: publish.yml on zs856/pypi-test-first

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypi_test_first-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pypi_test_first-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ec66c77e2c4ee7674078475f0b12811d463a9a18009c477f0784d0fdcd8b76b
MD5 8e61f3a2d2e06974a064bda04af603c6
BLAKE2b-256 2d61aed3d27f8349fe8c0c469f314033ad52c02120b0e990af1238157199f864

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypi_test_first-0.1.2-py3-none-any.whl:

Publisher: publish.yml on zs856/pypi-test-first

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page