...
 
Commits (2)
    https://gitcode.net/qq_33816117/1024opensource/-/commit/efe84311e231c188c3b6088043659725dd5ad45c 重构包路径导入 2022-11-10T17:21:57+08:00 Steven steven@timelinelabs.cn https://gitcode.net/qq_33816117/1024opensource/-/commit/f57eda040bc3bca88ace7e754501389e45ff3bc4 add python file 2022-11-14T15:37:16+08:00 Steven steven@timelinelabs.cn
import turtle
import math
if __name__ == '__main__':
l=turtle.pen()
l=turtle
l.up()
l.goto(0,150)
l.down()
l.color('red')
l.begin_fill()
l.fillcolor('red')
l.speed(1)
l.left(45)
l.forward(150)
l.right(45)
l.forward(100)
l.right(45)
l.forward(100)
l.right(45)
l.forward(100)
l.right(45)
l.forward(250+math.sqrt(2)*100)
l.right (90)
l.speed(2)
l.forward(250+100*math.sqrt(2))
l.right(45)
l.forward(100)
l.right(45)
l.forward(100)
l.right(45)
l.forward(100)
l.right(45)
l.forward(150)
l.end_fill()
l.goto(-10,0)
l.pencolor('yellow')
#L
l.pensize(10)
l.goto(-50,0)
l.goto(-50,80)
l.up ()
#I
l.goto(-100,0)
l.down()
l.goto(-160,0)
l.goto(-130,0)
l.goto(-130,80)
l.goto(-160,80)
l.goto(-100,80)
l.up()
#O
l.goto(10,25)
l.down()
l.right(45)
l.circle(25,extent=180)
l.goto(60,55)
l.circle(25,extent=180)
l.goto(10,25)
l.up()
l.goto(75,80)
l.down()
l.goto(100,0)
l.goto(125,80)
l.up()
l.goto(180,80)
l.down()
l.goto(140,80)
l.goto(140,0)
l.goto(180,0)
l.up()
l.goto(180,40)
l.down()
l.goto(140,40)
#U
l.up()
l.goto(-40,-30)
l.down()
l.goto(-40,-80)
l.circle(40,extent=180)
l.goto(40,-30)
l.hideturtle()
a=input()
\ No newline at end of file
......@@ -20,10 +20,10 @@
</properties>
<dependencies>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- <scope>compile</scope>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -10,8 +10,7 @@
<!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- </parent>-->
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
......
......@@ -87,7 +87,7 @@
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope>
......
......@@ -72,10 +72,10 @@
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- <scope>compile</scope>-->
</dependency>
<!--SpringBoot整合Pulsar 私人写的 -->
......
......@@ -15,8 +15,6 @@
</parent>
<artifactId>mq-rocketmq</artifactId>
<groupId>com.example</groupId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<java.version>11</java.version>
<testcontainers.version>1.17.3</testcontainers.version>
......@@ -67,10 +65,10 @@
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope>
<!-- <scope>test</scope>-->
</dependency>
<dependency>
......
package com.example.mqrocketmq.service.demo2;
import com.example.common.entity.Book;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component;
......
......@@ -2,26 +2,26 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<modules>
<!-- <module>mq-common</module>-->
<module>mq-kafka</module>
<module>mq-artemis</module>
<module>mq-pulsar</module>
<module>mq-rocketmq</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath/> <!-- lookup parent from repository -->
<!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
</parent>
<groupId>com.example</groupId>
<artifactId>mq-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>mq-test</name>
<description>mq-test</description>
<packaging>pom</packaging>
<modules>
<!-- <module>mq-common</module>-->
<module>mq-rocketmq</module>
<module>mq-artemis</module>
<module>mq-kafka</module>
<module>mq-pulsar</module>
</modules>
<properties>
<java.version>11</java.version>
<testcontainers.version>1.17.3</testcontainers.version>
......@@ -40,7 +40,7 @@
</dependency>
<dependency>
<groupId>com.example.common</groupId>
<groupId>com.example</groupId>
<artifactId>mq-common</artifactId>
<version>${mqtest.version}</version>
</dependency>
......
autoOpen: true
apps:
- port: 8080
command: cd mq-artemis & mvn spring-boot:run
root: ./mq-artemis
command: python love.py
root: ./
name: artemis_test
description: artemis_test
autoOpen: true