Commit a85a789a by BellCodeEditor

auto save

parent 79353ebc
Pipeline #10733 failed in 0 seconds
Showing with 85 additions and 65 deletions
stages: impor turtle
- install_deps t=turtle.Pen()
- test t.down()
for i in range(5):
# 安装依赖 t.fd(50)
install_deps: t.rt(144)
stage: install_deps t.up()
image: bellcode/codingmonkey-dev:1.3 t.fd(75)
except: t.down()
- /^ci-tweak.*/ for i in range(5):
script: xingxing()
- cd Api turtle.done()
- composer install \ No newline at end of file
dependencies: []
retry: 1
artifacts:
paths:
- Api/vendor/
# 运行测试用例
test:
stage: test
dependencies:
- install_deps
image: bellcode/codingmonkey-dev:1.3
except:
- /^ci-tweak.*/
services:
- name: bellcode/mysql:5.6
alias: mysql
- name: redis:latest
variables:
# Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
MYSQL_DATABASE: 'cm_dev'
MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
TZ: 'Asia/Shanghai'
retry: 1
script:
- mkdir -p /mnt/CodingMonkey/sensors; chmod a+rwx /mnt/CodingMonkey/sensors; # TODO 移到docker里面
- scripts/test/validate_migration_format.php
- mysql -h mysql -u root -e "drop database cm_dev; create database cm_dev default charset utf8mb4 COLLATE utf8mb4_general_ci;";
- chmod +x ./cs-fixer.sh
- ./cs-fixer.sh
- cd doc/api
- npm install && npm run build:api:omni
- cd ../../Api
- mv ./config/settings_ci.php ./config/settings.php
- mv ./config/defined_dev.php ./config/defined.php
- ./vendor/bin/phinx migrate -e test
- ./vendor/bin/phinx seed:run -e test
- ./phpunit.sh
\ No newline at end of file
students = ["悟空", "小贝", "八戒", "波奇"] import turtle
turtle.setup(600,800)
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除 t=turtle.Pen()
? s=turtle.Screen()
s.bgcolor("light pink")
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面 def cfx(x,y,a,b,c):
? t.up()
t.goto(x,y)
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组, t.down()
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组 t.color(a)
red = ? t.seth(0)
blue = ? t.begin_fill()
for i in range(2):
t.fd(b)
t.right(90)
t.fd(c)
t.right(90)
t.end_fill()
cfx(-150,260,"gold",260,280)
cfx(-150,0,"white",260,30)
cfx(-150,-25,"brown",260,35)
cfx(-110,-38,"black",20,4)
cfx(-80,-38,"black",20,4)
cfx(-50,-38,"black",20,4)
cfx(-20,-38,"black",20,4)
cfx(10,-38,"black",20,4)
cfx(40,-38,"black",20,4)
cfx(70,-38,"black",20,4)
cfx(-100,-50,"brown",60,50)
cfx(0,-50,"brown",60,50)
cfx(20,-100,"gold",20,100)
cfx(-80,-100,"gold",20,100)
cfx(82,-130,"white",25,70)
cfx(18,-130,"white",25,70)
cfx(82,-145,"blue",25,3)
cfx(82,-155,"red",25,3)
cfx(18,-30,"blue",25,3)
cfx(18,-30,"red",25,3)
t.ht()
turtle.done()
\ No newline at end of file
class Hero:
def __init__(self,mn,hp,at):
self.level = 1
self.mn = mn
self.hp= hp
self.at = at
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+9999999999999999999999999
self.at=self.at+999999999999999999999999999999990
#houyi = Hero("jj",0.000000000000001,9999999999999999999999999999999999)
yase=Hero("bus",555,99)
yase.upgrade()
print(yase.hp)
\ No newline at end of file
import turtle
f=turtle.Pen()
f.goto(0,0)
f.fillcolor("red")
f.begin_fill()
for t in range(4):
for i in range(3):
f.forward(100)
f.lt(90)
f.rt(180)
f.end_fill()
turtle.done()
\ No newline at end of file
ded co
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment