Skip to content

OlivOS-Team/lib-onedice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lib-onedice

本项目是OneDice标准的标准库

包含了以下支持版本

语言 OneDice 版本 主要作者 项目地址
Python V1 lunzhiPenxil OlivOS-Team/lib-onedice/python
Kotlin V1 zhaodice OlivOS-Team/lib-onedice/kotlin

Python 版本

Pypi

安装

从 PyPI 安装(推荐)

  • 使用 pip
pip install onedice

使用

参考代码

import onedice

dice = onedice.RD("(1d8+2d100)*1d10")
dice.roll()
print(dice.resInt)
print(dice.resError)

输出结果

1296
None

About

Today, we stand as one

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published