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
python3-Our_Programmer_Life.py 1.99 KB
Copy Edit Web IDE Raw Blame History
# 语言:python
# 主题:我们的程序员生活
class people(object):#定义 人 属性
name = ""
age = 0
def say(self,msg):
print(msg)
def think(self,msg):
print(msg)
bright = people()#bright是个人
bright.name = "bright"#他叫bright
ffxw = people()#ffxw是个人
ffxw.name = "ffxw"#他叫ffxw
bright.age = 12#bright今年12岁
ffxw.age = 12#ffxw今年也12岁
class nebula-xy-massage():
introduce = ""
under_development = ""
nebula-xy-massage.introduce = "一个主打c/c++编程语言的工作室"
nebula-xy-massage.under_development = "XyKong OS"
class lingkong-massage():
introduce = ""
under_development = ""
lingkong-massage.introduce = "一个主打python3编程语言的工作室"
lingkong-massage.under_development = "lingkong-robot"#小广告:https://gitee.com/lingkonggzs/lingkong-robot
lingkong-robotQQgroup = [bright,ffxw]#bright和ffxw在同一个qq群里
bright.say("有人跟我合作搞XyKong OS吗")
bright.say("有人跟我合作搞XyKong OS吗")
bright.say("有人跟我合作搞XyKong OS吗")
ffxw.say("私聊")
print("他们愉快地合作了")
print("一个月过去了")
ffxw.say("要不,我们lingkong收购你们nebula-xy?")
bright.think("啥,收购?")
bright.say("不行")
bright.say("我nebula-xy都还没组建好你就要收购?")
print("过年了")
bright.say("bright给ffxw发送了一个窗口抖动")
bright.say("我们做一个方便团队协作的软件来加速xykong的开发?")
ffxw.say("可是不是已经有了Tim和钉钉了吗?用那些东西不香吗?")
bright.say("可是要是我们的xykong做得好的话,我们的聊天岂不是就成为机密啦?")
bright.say("那些大公司都是这么做的,我们来试试嘛")
ffxw.say("好吧,那就当做是一个练习好了")
#未完待续
#因为这是我和bright的故事,所以不建议大家接龙,但大家可以修改错字啥的哦

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