Skip to main content

It can check if A is a subset of B based on python 3.10

Project description

iscontain

基于python3.10,判断A是否为B子集
It can check if A is a subset of B
base on python 3.10

usage

支持有序与无序两种模式,支持列表,元组,字符串
It supports both ordered and disordered modes
Types such as list tuple strings are also supported

disorder

from iscontain import iscontain
l1 = [2, 4]
l2 = [2, 3, 4, 5, 4, 6]
print(iscontain(l1, l2))#True

order

from iscontain import iscontain
l1 = [2, 4]
l2 = [2, 3, 4, 5, 4, 6]
print(iscontain(l1, l2, accurate=True))#False
l1 = [4, 5, 4]
l2 = [2, 3, 4, 5, 4, 6]
print(iscontain(l1, l2, accurate=True))#True

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

iscontain-0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

iscontain-0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file iscontain-0.1.tar.gz.

File metadata

  • Download URL: iscontain-0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for iscontain-0.1.tar.gz
Algorithm Hash digest
SHA256 7fc4751488139b8de9f6ebc17357ad69b5923f0cbf0e2d8004eb49e76b2b3e96
MD5 31bc0ee4cd3c6ea656b1dfe14093ebd9
BLAKE2b-256 42cd772144bb5ae508d13fc82ccbf602e3082457ac7a6815d604c7d573e01c3c

See more details on using hashes here.

File details

Details for the file iscontain-0.1-py3-none-any.whl.

File metadata

  • Download URL: iscontain-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for iscontain-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e3042a75cd21afcfa0527e704f4c8fb461a0eb416234698ac658a02663b10d6
MD5 3ea6b5f6674521870c56169bd27dbf88
BLAKE2b-256 c62cc324fb04519123dd49dc5c0da313534853a85fdd0a6c87dfc4a66c399b66

See more details on using hashes here.

Supported by

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