Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Recolic
chinese-obfs
Commits
36257180
Unverified
Commit
36257180
authored
Nov 01, 2019
by
meng ke
Committed by
GitHub
Nov 01, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from 111116/master
修正笔误 & 小幅简化代码
parents
6426c55b
798e21ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
自动狗屁不通文章生成器.py
自动狗屁不通文章生成器.py
+7
-8
No files found.
自动狗屁不通文章生成器.py
View file @
36257180
...
...
@@ -45,7 +45,7 @@ xx = "学生会退会"
"对我个人而言,x不仅仅是一个重大的事件,还可能会改变我的人生. "
,
]
名人名言
=
[
# a 代表前面垫话,
把
代表后面垫话
名人名言
=
[
# a 代表前面垫话,
b
代表后面垫话
"爱迪生a,天才是百分之一的勤奋加百分之九十九的汗水。b"
,
"查尔斯·史a,一个人几乎可以在任何他怀有无限热忱的事情上成功。b"
,
"培根说过,深窥自己的心,而后发觉一切的奇迹在你自己。b"
,
...
...
@@ -175,9 +175,9 @@ xx = "学生会退会"
]
def
来点名人名言
():
xx
=
名人名言
[
random
.
randint
(
0
,
len
(
名人名言
)
-
1
)]
xx
=
xx
.
replace
(
"a"
,
前面垫话
[
random
.
randint
(
0
,
len
(
前面垫话
)
-
1
)]
)
xx
=
xx
.
replace
(
"b"
,
后面垫话
[
random
.
randint
(
0
,
len
(
后面垫话
)
-
1
)]
)
xx
=
random
.
choice
(
名人名言
)
xx
=
xx
.
replace
(
"a"
,
random
.
choice
(
前面垫话
))
xx
=
xx
.
replace
(
"b"
,
random
.
choice
(
后面垫话
))
return
xx
def
另起一段
():
...
...
@@ -186,7 +186,6 @@ def 另起一段():
xx
+=
" "
return
xx
if
__name__
==
"__main__"
:
xx
=
input
(
"请输入文章主题:"
)
for
x
in
xx
:
...
...
@@ -198,7 +197,6 @@ if __name__ == "__main__":
elif
分支
<
20
:
tmp
+=
来点名人名言
()
else
:
tmp
+=
废话
[
random
.
randint
(
0
,
len
(
废话
)
-
1
)]
tmp
+=
random
.
choice
(
废话
)
tmp
=
tmp
.
replace
(
"x"
,
xx
)
print
(
tmp
)
print
(
tmp
)
\ 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