Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Recolic
chinese-obfs
Commits
1c7c1fb6
Commit
1c7c1fb6
authored
Apr 30, 2021
by
Recolic K
Browse files
make the noob code better
parent
d3743419
Changes
1
Hide whitespace changes
Inline
Side-by-side
bullshit.py
View file @
1c7c1fb6
...
@@ -17,6 +17,8 @@ prefix_data = list(data['before']) # 在famous_data前面弄点nonsense_data
...
@@ -17,6 +17,8 @@ prefix_data = list(data['before']) # 在famous_data前面弄点nonsense_data
postfix_data
=
list
(
data
[
'after'
])
# 在famous_data后面弄点nonsense_data
postfix_data
=
list
(
data
[
'after'
])
# 在famous_data后面弄点nonsense_data
nonsense_data
=
list
(
data
[
'bosh'
])
# 代表文章主要nonsense_data来源
nonsense_data
=
list
(
data
[
'bosh'
])
# 代表文章主要nonsense_data来源
print
(
"debug: len="
,
[
len
(
l
)
for
l
in
[
famous_data
,
prefix_data
,
postfix_data
,
nonsense_data
]])
repeat_factor
=
2
repeat_factor
=
2
def
randomized_yield
(
iterable
):
def
randomized_yield
(
iterable
):
...
@@ -38,10 +40,7 @@ def new_famous():
...
@@ -38,10 +40,7 @@ def new_famous():
return
famous
return
famous
def
new_paragraph
():
def
new_paragraph
():
xx
=
". "
return
".
\r\n
"
xx
+=
"
\r\n
"
xx
+=
" "
return
xx
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
topic
=
input
(
"请输入文章主题:"
)
topic
=
input
(
"请输入文章主题:"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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