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
6426c55b
Unverified
Commit
6426c55b
authored
Nov 01, 2019
by
meng ke
Committed by
GitHub
Nov 01, 2019
Browse files
Merge pull request #13 from gaoljhy/patch-1
update Main Function And Cmd Input
parents
cc7a5b84
8ec170c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
自动狗屁不通文章生成器.py
View file @
6426c55b
...
...
@@ -187,15 +187,18 @@ def 另起一段():
return
xx
for
x
in
xx
:
tmp
=
str
()
while
(
len
(
tmp
)
<
6000
)
:
分支
=
random
.
randint
(
0
,
100
)
if
分支
<
5
:
tmp
+=
另起一段
()
elif
分支
<
20
:
tmp
+=
来点名人名言
()
else
:
tmp
+=
废话
[
random
.
randint
(
0
,
len
(
废话
)
-
1
)]
tmp
=
tmp
.
replace
(
"x"
,
xx
)
print
(
tmp
)
if
__name__
==
"__main__"
:
xx
=
input
(
"请输入文章主题:"
)
for
x
in
xx
:
tmp
=
str
()
while
(
len
(
tmp
)
<
6000
)
:
分支
=
random
.
randint
(
0
,
100
)
if
分支
<
5
:
tmp
+=
另起一段
()
elif
分支
<
20
:
tmp
+=
来点名人名言
()
else
:
tmp
+=
废话
[
random
.
randint
(
0
,
len
(
废话
)
-
1
)]
tmp
=
tmp
.
replace
(
"x"
,
xx
)
print
(
tmp
)
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