1
0

write some sonnet code

This commit is contained in:
2026-01-18 14:56:37 +08:00
parent 941e59e471
commit 49940b43d5
11 changed files with 863 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
use pyo3::prelude::*;
pub(crate) mod utils;
pub(crate) mod tasfile;
/// A Python module implemented in Rust.
#[pymodule]
mod BallanceTasSonnet {
use pyo3::prelude::*;
/// Formats the sum of two numbers as string.
#[pyfunction]
fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
Ok((a + b).to_string())
}
}