Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
python-a_day_of_little_dog 1.58 KB
Copy Edit Web IDE Raw Blame History
南方人 authored 2020-03-23 22:56 . update python-a_day_of_little_dog.
# 编程语言: Python
# 故事主题: 遇见小狗
import datetime as dt
class Puppy:
def __init__(self):
pass
class Story:
def __init__(self):
pass
story = Story()
story.story_time = dt.datetime(2020, 3, 23, 6) # 故事发生在20年3月23日清晨
story.site = 'a corner outside the school gate' # 在校门外的一个角落
story.dog = Puppy() # 这是一只小狗
story.dog.dog_hairs = {'color': 'yellow and black', 'characteristic': ['kind of dirty', 'long hair']} # 长长的毛发黄黑相间,略微有点脏乱
story.dog.eye = {'color': 'bule', 'characteristic': ['clear']} # 它有一双蓝色的清澈的眼睛
story.dog.action = ['open your eyes', 'wake up'] # 睁开双眼,醒了过来
story.dog.action.append('stretch oneself') # 伸了伸懒腰,准备开始新一天的活动
story.dog.action.append('jump into the school') # 它敏捷的一跳,溜进了校门
story.write_num = [1] # 第一幕结束,未完待续···
import Security_men # 校园的值勤的保安正好看到小狗
story.Security_men.action = ['take him home'] # 保安担心小狗的安全,于是将其带回了家
story.Security_men.daughter = 'g' # 保安的女儿叫做小g
story.Security_men.daughter.action = ['love very much,make the home for him and call him yun'] # 保安的女儿小g非常喜欢它,并为它建了家,取名为云
stroy.dog.action.append('feel happy') # 云也非常开心
story.dog.action.append('go home and sleep') # 云走进小窝,然后睡了过去
story.write_num = [2] # 第二幕结束,未完待续...

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542