Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a05e87aa
authored
Mar 15, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
79353ebc
Pipeline
#11507
failed in 0 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
57 deletions
.gitlab-ci.yml
bavpvuivwqhgidjsahfhfijjij.py
diy1.py
djuq.py
.gitlab-ci.yml
View file @
a05e87aa
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
eel -u root -e "drop database cm_dev; create database cm_dev default charset utf8mb4 COLLATE utf8mb4_general_ci;";
\ No newline at end of file
bavpvuivwqhgidjsahfhfijjij.py
0 → 100644
View file @
a05e87aa
import
random
key
=
"女粉发觉偶觉得随便几点看法v看见没记错和K歌防空i娃儿方法为哦哦零四vu陈秘书释放了噶快感染力。如果hare嗯嗯哦不过hi都很好vi韩国i任何的恶如七月入伍老夫我如完全"
message
=
"九三九五"
key_message
=
""
noise
=
"d7ioy:!
%#
@#!"
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
key_message
=
key_message
+
text
list_message
=
list
(
key_message
)
list_message
.
insert
(
5
,
noise
)
result_message
=
""
.
join
(
list_message
)
print
(
key_message
)
diy1.py
View file @
a05e87aa
students
=
[
"悟空"
,
"小贝"
,
"八戒"
,
"波奇"
]
students
=
[
"悟空"
,
"小贝"
,
"8戒"
,
"波奇"
]
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
?
students
.
remove
(
"8戒"
)
print
(
students
)
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面
?
students
.
appen
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
...
...
djuq.py
0 → 100644
View file @
a05e87aa
message
=
"在多一眼看一眼就会爆炸"
length
=
len
(
message
)
i
=
0
while
i
<
length
:
element
=
message
[
i
]
print
(
element
)
i
=
i
+
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment