New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mathexpand

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathexpand

A math expand package

  • 1.3.0
  • PyPI
  • Socket score

Maintainers
1

math-expand Package

这个包是对Python原生的Math包进行的拓展,目前提供的方法如下:

  • digits
    • take_digits(number, return_type) → list/dict
      • 方法用途
        • 取一个数的每一位数
      • 方法解析
        • 参数解析
          • number
            • 要取每一位数的数
          • return_type
            • 指定返回值的类型
            • 默认为l,有l(返回列表),和d(返回字典)两种形式,其余值会导致输出一条错误信息。
        • 返回值
          • 由return_type参数决定
          • 返回值
            • list
              • 这个列表里包含了这个数从高到低每个数位的数字
            • dict
              • 这个字典的键是一个个计数单位,每个键对应的值便是当前键表示的计数单位上的值

使用 pip install mathexpand 命令安装它!

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc