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
74ea4439
authored
Oct 28, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
0ea64407
Pipeline
#10797
failed in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
68 deletions
.gitlab-ci.yml
diy1.py
.gitlab-ci.yml
View file @
74ea4439
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
message="诺依,周末一起去看动漫展吧!"
diy1.py
View file @
74ea4439
import
random
message
=
"诺依,咱们一起去看动漫展吧!"
key
=
"jefvueohgiqwejf029/t3ugoerwjgoiwrjg90rw"
h
=
"ijqer$
%
^&*"
key5
=
""
"""message="诺依,周末一起去看动漫展吧!"
for i in message:
key1
=
i
key2
=
random
.
choice
(
key
)
key3
=
random
.
choice
(
key
)
key4
=
key1
+
key2
+
key3
key5
=
key5
+
key4
key5
=
list
(
key
)
key5
.
insert
(
2
,
h
)
key5
=
""
.
join
(
key5
)
print
(
key5
)
print(i)"""
for
i
in
:
import
random
message
=
"诺依,周末一起去看动漫展吧!"
key
=
"sdfgyu90p;/hjhgf"
a
=
" "
for
i
in
message
:
str1
=
i
str2
=
random
.
choice
(
key
)
str3
=
random
.
choice
(
key
)
text
=
str1
+
str2
+
str3
a
=
a
+
text
a
=
list
(
a
)
a
.
insert
(
3
,
"kzdjifesugjwrdutefh4"
)
a
=
""
.
join
(
a
)
print
(
a
)
\ No newline at end of file
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