关于
# data
from dataclasses import dataclass, field, fields
from functools import lru_cache
SEP = "=" * 30
_INLINE_FIELDS = frozenset({"languages", "tags"})
@lru_cache(maxsize=None)
def _print_banner() -> None:
print("Hello!")
print("悦来集团: https://www.yuelaigroup.com/")
print("E-mail: chixm@bytecho.net")
@dataclass(kw_only=True)
class Chixm:
name: str = "小陌-Chixm"
web_id: str = "moshanghua"
gender: str = "M"
age: int | None = None
zodiac_cn: str | None = None
zodiac: str | None = None
mbti: str | None = None
location: str | None = "中国"
bio: str | None = "I'm single-threaded. "
signature: str | None = None
languages: list[str] = field(
default_factory=lambda: ["中文", "English(略懂)"]
)
tags: list[str] = field(
default_factory=lambda: ["单线程", "话少", "安静", "牛马", "音游"]
)
daily_pastimes: list[str] = field(
default_factory=lambda: ["睡觉", "发呆", "学习", "文字", "音乐", "逛博客"]
)
games: list[str] = field(
default_factory=lambda: ["英雄联盟", "Minecraft", "欧卡"]
)
currently_learning: list[str] = field(
default_factory=lambda: ["CSS", "Javascript", "Python", "Docker"]
)
status: str | None = "working"
mood: str | None = "slacking off / letting it rot"
company: str | None = "悦来集团"
occupation: str | None = None
operating_system: str | None = "Mac OS"
common_software: list[str] = field(
default_factory=lambda: ["Firefox", "Pure Writer", "Xterminal", "VS Code", "..."]
)
website: str | None = "https://moshanghua.net"
projects: list[dict] = field(default_factory=list)
def __post_init__(self) -> None:
_print_banner()
def render_profile(person: Chixm) -> None:
print(f"\n{SEP}\n✨ 个人信息档案\n{SEP}")
for f in fields(person):
v = getattr(person, f.name)
if isinstance(v, list):
if not v:
print(f"{f.name}: 暂未填写")
elif f.name in _INLINE_FIELDS:
print(f"{f.name}: {'、'.join(str(item) for item in v)}")
elif all(isinstance(item, dict) for item in v):
print(f"{f.name}:")
for item in v:
print("- " + "\n ".join(f"{k}: {val}" for k, val in item.items()))
else:
print(f"{f.name}:")
print("\n".join(f"- {item}" for item in v))
elif v is not None and v != "":
print(f"{f.name}: {v}")
else:
print(f"{f.name}: 暂未填写")
print(SEP)
if __name__ == "__main__":
me = Chixm(
signature="还是习惯用电脑逛博客。",
projects=[
{
"name": "花开陌上",
"url": "https://moshanghua.net",
"rss": "https://moshanghua.net/feed.xml",
"desc": "待我熬尽一日苦,喂你一口甜!",
"avatar": "https://moshanghua.net/api/v1/uploads/file/78987f3efeb3f995271d73948d0835ef_20260509014543.jpg",
}
],
)
me.games.append("QQ农场")
me.currently_learning.append("Vue.js3(Not started)")
render_profile(me)
Hello!
欢迎来访我的个人小站!或许你来的匆忙,非常感谢你能到此停下脚步。
关于我
这里是小陌 (Xiaomo),你也可以叫我花花,
常用昵称陌上花(ID:moshanghua)
当前所处位置花都附近,打杂为生的第八年。
呃,现实中话少,网络上话也不多
生活比较懒散,情感比较随缘
朋友较少,喜欢安静和独处
重度脸盲患者,记忆力也差
闲暇时间,喜欢听音乐,胡写字,乱翻书,看动漫番剧以及刷网页逛博客。
偶尔也折腾一些不知所谓的东西。
喜欢逛着别人的网站,读着别人写的故事,感慨自己的人生。
然后,不曾长大~
Try:勇于尝试
Enjoy:停下来享受生活
Documentary:记得整理和记录
其他信息
没什么突出的特长。真的要说的话,每天睡觉的时间特长 (?)…
终生学习者,在元认知领域小有探索,快速从 0 到 0.1 的学习能力
喜欢各种奇奇怪怪可可爱爱的东西
语言能力特别弱,不会交流更不会表达,自己深受其害,尝试改变中。
很多时候对花里胡哨感到不适,保有能用小件绝不用大件、能带少绝不带多的原则
在这个浮躁的社会里,卷又卷不起来,躺又躺不平,每天都忧心忡忡却又对未来充满希望,45°的摆烂人生。
喜爱文字,看书阅读,读书类型多且断续,因为喜欢故事性的文字,平时看的多为(网文)(武侠)小说、人物传记、(历史)文学以及散文杂著等分类下的作品。
会用QQ音乐听歌,不懂音乐,但爱听,听的歌曲种类很杂,听歌风格趋于稳定,「Pop」,但也不限于这些风格,容易被旋律和歌词打动,会去发掘小众冷门歌曲。
对编程有少些念头,想把前端,Python入门到会用的阶段,创造新体验!
但目前是处于瞎折腾,代码是复制粘贴一通乱搞的状态。
持续学习:CSS
积极入门:JavaScript / Vue.js3 / Python
我在这里
你可以通过下面的方式联系我(一般来说,四十八小时之内有回应):
E-mail:chixm@bytecho.net
E-mail:chixm@vip.qq.com
博客评论
友链信息
网站名称:花开陌上
网站地址:https://moshanghua.net
RSS 订阅:https://moshanghua.net/feed.xml
网站描述:待我熬尽一日苦,喂你一口甜!
Logo 地址:https://moshanghua.net/api/v1/uploads/file/78987f3efeb3f995271d73948d0835ef_20260509014543.jpg
关于博客
- 创立日期:2016
- 构建程序:「Yuelai Engine」

评论区
网站名称:下午茶的轻音部
网站链接:https://www.haibara.top
头像链接:https://s1.ax1x.com/2018/03/26/9LDr79.png
网站描述:我们走的太远,以至于忘了为什么而出发。
联系方式:583609124(QQ)
喜欢这个网站,申请友链交换。
湖北省WindowsChrome
@haibara O(∩_∩)O,已添加啦,欢迎常来!
广西WindowsFirefox
[ 网站名称 ]:mathor
[ 网站链接 ]:http://www.wmathor.com/
[ 网站描述 ]:热爱数学的程序员
[ 联系方式 ]:739616037
[ 头像链接 ]:https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2870164781,3342023676&fm=58
湖北省WindowsChrome
[ 网站名称 ]:mathor
[ 网站链接 ]:http://www.wmathor.com/
[ 网站描述 ]:热爱数学的程序员
[ 联系方式 ]:739616037
[ 头像链接 ]:https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2870164781,3342023676&fm=58
湖北省WindowsChrome
[ 网站名称 ]:燕十三·一个人的江湖
[ 网站链接 ]:https://www.yanshisan.cn/Blog/Article
[ 网站描述 ]:剑气纵横三万里,一剑光寒十九洲。
[ 联系方式 ]:930054439
[ 头像链接 ]:https://www.yanshisan.cn/logo.png
四川省WindowsChrome
@燕十三 已添加,欢迎常来啊(〃‘▽’〃)
广西WindowsFirefox
路过留个言 [xieyanxiao]
河南省WindowsChrome
因本人的原因不再友链,抱歉。
浙江省WindowsChrome
喂喂喂,筱莫筱莫,这里是润天
我的链接怎么还没有改好 [aoman]
http://www.zhangruntian.com/
浙江省WindowsChrome
@润天 啊,不应该吧,我记得是改了的啊 [xiaoku] [xiaojiujie]
广西WindowsFirefox
换个友链吧,小陌童鞋 [huaixiao] :
[ 网站名称 ]:小猫博客
[ 网站链接 ]:http://blog.skillcat.me
[ 网站描述 ]:一只走在前端与设计不归路上的技术宅
[ 头像链接 ]:https://www.skillcat.me/favicon.ico
河南省WindowsChrome
@宅小猫 喵喵喵,这几天有事,没及时回复,抱歉啦,小猫大佬,链接加好啦,欢迎常来啊, [haixiu]
广西WindowsChrome
又换界面了。。。
四川省WindowsChrome
@七年。 哈哈,什么叫又啊,这不才换第一次嘛,怎么样,还不错吧 [xieyanxiao]
广西WindowsChrome
[fadai] ddos,别乱来啊,我网站扛不起的啊 [xiaoku] ,最后,谢谢提醒,感谢你的来访 [xieyanxiao]
广西WindowsFirefox