...
 
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 @@ ...@@ -20,10 +20,10 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.example.common</groupId> <groupId>com.example</groupId>
<artifactId>mq-common</artifactId> <artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version> <!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope> <!-- <scope>compile</scope>-->
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
<!-- <version>0.0.1-SNAPSHOT</version>--> <!-- <version>0.0.1-SNAPSHOT</version>-->
<!-- </parent>--> <!-- </parent>-->
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<groupId>com.example.common</groupId>
<artifactId>mq-common</artifactId> <artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<properties> <properties>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<artifactId>spring-boot-starter-log4j2</artifactId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.example.common</groupId> <groupId>com.example</groupId>
<artifactId>mq-common</artifactId> <artifactId>mq-common</artifactId>
<!-- <version>0.0.1-SNAPSHOT</version>--> <!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope> <scope>compile</scope>
......
...@@ -72,10 +72,10 @@ ...@@ -72,10 +72,10 @@
<artifactId>spring-boot-starter-log4j2</artifactId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.example.common</groupId> <groupId>com.example</groupId>
<artifactId>mq-common</artifactId> <artifactId>mq-common</artifactId>
<version>0.0.1-SNAPSHOT</version> <!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope> <!-- <scope>compile</scope>-->
</dependency> </dependency>
<!--SpringBoot整合Pulsar 私人写的 --> <!--SpringBoot整合Pulsar 私人写的 -->
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
</parent> </parent>
<artifactId>mq-rocketmq</artifactId> <artifactId>mq-rocketmq</artifactId>
<groupId>com.example</groupId>
<version>0.0.1-SNAPSHOT</version>
<properties> <properties>
<java.version>11</java.version> <java.version>11</java.version>
<testcontainers.version>1.17.3</testcontainers.version> <testcontainers.version>1.17.3</testcontainers.version>
...@@ -67,10 +65,10 @@ ...@@ -67,10 +65,10 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.example.common</groupId> <groupId>com.example</groupId>
<artifactId>mq-common</artifactId> <artifactId>mq-common</artifactId>
<!-- <version>0.0.1-SNAPSHOT</version>--> <!-- <version>0.0.1-SNAPSHOT</version>-->
<scope>compile</scope> <!-- <scope>test</scope>-->
</dependency> </dependency>
<dependency> <dependency>
......
package com.example.mqrocketmq.service.demo2; package com.example.mqrocketmq.service.demo2;
import com.example.common.entity.Book;
import org.apache.rocketmq.spring.core.RocketMQTemplate; import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
......
...@@ -2,26 +2,26 @@ ...@@ -2,26 +2,26 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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"> 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> <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> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version> <version>2.7.2</version>
<relativePath/> <!-- lookup parent from repository --> <!-- <relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;-->
</parent> </parent>
<groupId>com.example</groupId> <groupId>com.example</groupId>
<artifactId>mq-test</artifactId> <artifactId>mq-test</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>mq-test</name> <name>mq-test</name>
<description>mq-test</description> <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> <properties>
<java.version>11</java.version> <java.version>11</java.version>
<testcontainers.version>1.17.3</testcontainers.version> <testcontainers.version>1.17.3</testcontainers.version>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.example.common</groupId> <groupId>com.example</groupId>
<artifactId>mq-common</artifactId> <artifactId>mq-common</artifactId>
<version>${mqtest.version}</version> <version>${mqtest.version}</version>
</dependency> </dependency>
......
autoOpen: true autoOpen: true
apps: apps:
- port: 8080 - port: 8080
command: cd mq-artemis & mvn spring-boot:run command: python love.py
root: ./mq-artemis root: ./
name: artemis_test name: artemis_test
description: artemis_test description: artemis_test
autoOpen: true autoOpen: true