aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/oneroll/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/oneroll/__init__.py')
-rw-r--r--src/oneroll/__init__.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/oneroll/__init__.py b/src/oneroll/__init__.py
index 5dddfad..cd42d60 100644
--- a/src/oneroll/__init__.py
+++ b/src/oneroll/__init__.py
@@ -11,17 +11,17 @@ Main functions:
- Bracket support
- Complete error handling
-Example of usage:
-# Basic use
-import oneroll
-result = oneroll.roll("3d6 + 2")
-print(result.total) # output total points
+Example of usage:
+# Basic use
+import oneroll
+result = oneroll.roll("3d6 + 2")
+print(result.total) # output total points
-# Use the OneRoll class
-roller = oneroll.OneRoll()
-result = roller.roll("4d6kh3")
+# Use the OneRoll class
+roller = oneroll.OneRoll()
+result = roller.roll("4d6kh3")
-# Simple throw
+# Simple throw
total = oneroll.roll_simple(3, 6)
"""
@@ -36,6 +36,7 @@ __version__ = "1.3.2"
__author__ = "HsiangNianian"
__description__ = "高性能骰子表达式解析器"
+
# 重新导出主要类和函数,提供更友好的接口
class OneRoll:
"""