Skip to main content

计算概论C课程随机故事、标题和模板文本生成工具

Project description

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))

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cm_story-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file cm_story-1.0.0.tar.gz.

File metadata

  • Download URL: cm_story-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cm_story-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2dc0fb1ff42f76d1df0a4b29948b11ebee0cadee920e5cf6d2a641fbe4e88889
MD5 d6d6506096b62d5a1e12d4a6bff3c3a4
BLAKE2b-256 a0cd84c0b12f267a192ea7c8540447e8803ab928a72c6bb78b8b133f15f9792b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page