可以做问卷赚钱的网站,wordpress站点更换域名,wordpress定义页面带html,软件ui设计网站目录 注册一个账号#xff0c;用qq邮箱#xff0c;然后登录选一个可用的Plus#xff0c;不要选3.5探索GPT今天的主角是开始寻梦美人鱼图表我选第二个试一下问答Summary 自定义类图玩一下问答 关于类图的补救方案结论关注我#xff0c;不迷路#xff0c;共学习#xff0c;… 目录 注册一个账号用qq邮箱然后登录选一个可用的Plus不要选3.5探索GPT今天的主角是开始寻梦美人鱼图表我选第二个试一下问答Summary 自定义类图玩一下问答 关于类图的补救方案结论关注我不迷路共学习同进步 记住这个网址https://newspace.ai0.cn 注册一个账号用qq邮箱然后登录 选一个可用的Plus不要选3.5
探索GPT 今天的主角是 开始寻梦美人鱼图表 一起来学点英语吧。 Official GPT from the Mermaid team. Generate a Mermaid diagram or chart with text including flowcharts, sequence, mind map, state, git graph, C4, class, block, Gantt chart, timeline, Sankey, user journey, entity relationship, pie chart, requirement, quadrant chart, or XY chart diagrams. 美人鱼团队的官方GPT。生成包含文本的美人鱼图或图表包括流程图、序列图、思维导图、状态图、数字图、C4、类、块图、甘特图、时间线、Sankey、用户旅程、实体关系、饼图、需求、象限图或XY图表。 Create a flowchart for making pizza. Add emoji. Show me inheritance using a class diagram. Make a sequence diagram for a barista ☕ Make a mindmap of various animals with emoji. 创建制作披萨的流程图。添加表情符号。 使用类图显示继承。 为咖啡师制作序列图☕ 用表情符号制作各种动物的思维导图。 我选第二个试一下
问 Show me inheritance using a class diagram. 答 To illustrate inheritance using a class diagram, we will create a simple example with a base class Animal and derived classes Dog and Cat.
Summary
Animal is the base class with common attributes like age and gender and methods like eat() and sleep().Dog and Cat inherit from Animal and have their own specific attributes and methods.
Here’s the mermaid code for this diagram:
//mermaid
classDiagramAnimal |-- DogAnimal |-- Catclass Animal {int ageString gendereat()sleep()}class Dog {String breedbark()}class Cat {String furColormeow()}Now, let’s render this diagram.
//mermaid
classDiagramAnimal |-- DogAnimal |-- Catclass Animal {int ageString gendereat()sleep()}class Dog {String breedbark()}class Cat {String furColormeow()}Let’s generate and render this diagram. You can edit and save this diagram on the MermaidChart editor. 上面这个是系统的示例。下面我们自己自定义一个类图。
自定义类图玩一下
问 做一个类图。基类是人子类是男人和女人 女人能生孩子。能吃饭能工作。男人能吃饭能工作能站着尿尿 。基类属性姓名性别年龄女人属性三围老公名孩子集合。男人属性老婆名体重身高孩子集合。孩子类也是基类的子类属性父亲名母亲名年龄学校班级孩子可以学习做作业。 请用汉语。 答 这张类图描述了基类“人”和其子类“男人”、“女人”以及“孩子”之间的关系和属性。
总结
基类是“人”具有属性姓名name、性别gender、年龄age。子类“女人”有额外的属性三围measurements、老公名husbandName和孩子集合children。子类“男人”有额外的属性老婆名wifeName、体重weight、身高height和孩子集合children。子类“孩子”有额外的属性父亲名fatherName、母亲名motherName、年龄age和学校班级schoolClass。“女人”有方法生孩子giveBirth()、吃饭eat()、工作work()。“男人”有方法吃饭eat()、工作work()、站着尿尿urinateStanding()。“孩子”有方法学习study()、做作业doHomework()。
这段代码创建了上述的类图
//mermaid
classDiagramclass Person {String nameString genderint ageeat()work()}class Woman {String measurementsString husbandNameList~Child~ childrengiveBirth()}class Man {String wifeNamefloat weightfloat heightList~Child~ childrenurinateStanding()}class Child {String fatherNameString motherNameint ageString schoolClassstudy()doHomework()}Person |-- WomanPerson |-- ManPerson |-- ChildWoman 1 -- * Child : childrenMan 1 -- * Child : children生成的类图如下 你可以在 MermaidChart editor 编辑和保存这张图。 关于类图的补救方案
如果对图有想法先改会改mermaid语言你就直接改。 如果不会就去github支持的编辑器 MermaidChart editor 。修改成你需要的样子。能节省你不少时间。
结论
生成的类图看起来还是非常专业的。对需求的理解也是非常清晰当然前提是你要描述清晰。 打个比方如果你的关于类的集成描述连聪明的你的聪明的同事都没听明白那么请不要责怪生成的图表不合心意。
关注我不迷路共学习同进步
关注我不迷路共学习同进步