Commit 1ea286da by BellCodeEditor

auto save

parent 79353ebc
Showing with 23 additions and 65 deletions
stages:
- install_deps
- test
# 安装依赖
install_deps:
stage: install_deps
image: bellcode/codingmonkey-dev:1.3
except:
- /^ci-tweak.*/
script:
- cd Api
- composer install
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
print("\t\t 宠物登级表")
print("\n\t\t姓名\t科属\t性别\n\n\t\t小咪\t猫科\t雌性\n\n\t\t小汪\t犬科\t雄性")
\ No newline at end of file
students = ["悟空", "小贝", "八戒", "波奇"] import turtle
pen=turtle.Pen()
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除 pen.pensize(2)
? pen.pencolor("blue")
pen.goto(0,0)
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面 pen.forward(200)
? pen.forward(-100)
pen.left(90)
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组, pen.forward(100)
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组 pen.forward(-200)
red = ? pen.right(90)
blue = ? pen.circle(100,90)
pen.pencolor("red")
pen.circle(100,90)
pen.pencolor("orange")
pen.circle(100,90)
pen.pencolor("green")
pen.circle(100,90)
turtle.done()
\ 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