Skip to main content

cm_story

随机故事、标题和模板文本生成工具。适合列表、字符串、随机数之后使用。

pip install cm_story
import cm_story

print(cm_story.random_title())
print(cm_story.random_sentence())

my_words = {
    'person': ['小陈', '小王'],
    'place': ['教室', '图书馆'],
    'object': ['一张纸条'],
    'event': ['写出了一段循环代码'],
    'feeling': ['开心'],
    'ending': ['大家都笑了起来'],
}

print(cm_story.random_story(words=my_words))

学生可以修改词库和模板,练习列表、字典、字符串格式化和文件保存。

Metadata

Release files for cm-story 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cm-story 1.0.0
File Size Uploaded Provenance Actions
cm_story-1.0.0.tar.gz 3.1 kB Without provenance Details for cm_story-1.0.0.tar.gz

Release files / cm_story-1.0.0.tar.gz

Download URL cm_story-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2dc0fb1ff42f76d1df0a4b29948b11ebee0cadee920e5cf6d2a641fbe4e88889
BLAKE2b-256 checksum
How to use checksums
a0cd84c0b12f267a192ea7c8540447e8803ab928a72c6bb78b8b133f15f9792b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for cm-story 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page