Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson21-diy1
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
45d2d024
authored
May 13, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e39f95c4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
22 deletions
.idea/.name
.idea/workspace.xml
6x2.png
bell.png
my_cloud.py
.idea/.name
0 → 100644
View file @
45d2d024
my_cloud.py
\ No newline at end of file
.idea/workspace.xml
View file @
45d2d024
...
@@ -24,18 +24,18 @@
...
@@ -24,18 +24,18 @@
<property
name=
"settings.editor.selected.configurable"
value=
"com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
/>
</component>
</component>
<component
name=
"RunManager"
>
<component
name=
"RunManager"
>
<configuration
name=
"my_cloud"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"my_cloud.py"
type=
"PythonConfigurationType"
factoryName=
"Python"
singleton=
"false"
>
<module
name=
"level3-lesson21-diy1"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
<envs>
<env
name=
"PYTHONUNBUFFERED"
value=
"1"
/>
<env
name=
"PYTHONUNBUFFERED"
value=
"1"
/>
</envs>
</envs>
<option
name=
"SDK_HOME"
value=
""
/>
<option
name=
"SDK_HOME"
value=
"
C:\Users\yd\AppData\Local\Programs\Python\Python37\python.exe
"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$"
/>
<option
name=
"IS_MODULE_SDK"
value=
"
tru
e"
/>
<option
name=
"IS_MODULE_SDK"
value=
"
fals
e"
/>
<option
name=
"ADD_CONTENT_ROOTS"
value=
"true"
/>
<option
name=
"ADD_CONTENT_ROOTS"
value=
"true"
/>
<option
name=
"ADD_SOURCE_ROOTS"
value=
"true"
/>
<option
name=
"ADD_SOURCE_ROOTS"
value=
"true"
/>
<module
name=
""
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/my_cloud.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/my_cloud.py"
/>
<option
name=
"PARAMETERS"
value=
""
/>
<option
name=
"PARAMETERS"
value=
""
/>
<option
name=
"SHOW_COMMAND_LINE"
value=
"false"
/>
<option
name=
"SHOW_COMMAND_LINE"
value=
"false"
/>
...
@@ -45,11 +45,6 @@
...
@@ -45,11 +45,6 @@
<option
name=
"INPUT_FILE"
value=
""
/>
<option
name=
"INPUT_FILE"
value=
""
/>
<method
v=
"2"
/>
<method
v=
"2"
/>
</configuration>
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"Python.my_cloud"
/>
</list>
</recent_temporary>
</component>
</component>
<component
name=
"SpellCheckerSettings"
RuntimeDictionaries=
"0"
Folders=
"0"
CustomDictionaries=
"0"
DefaultDictionary=
"application-level"
UseSingleDictionary=
"true"
transferred=
"true"
/>
<component
name=
"SpellCheckerSettings"
RuntimeDictionaries=
"0"
Folders=
"0"
CustomDictionaries=
"0"
DefaultDictionary=
"application-level"
UseSingleDictionary=
"true"
transferred=
"true"
/>
<component
name=
"TaskManager"
>
<component
name=
"TaskManager"
>
...
@@ -63,22 +58,26 @@
...
@@ -63,22 +58,26 @@
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"WindowStateProjectService"
>
<component
name=
"WindowStateProjectService"
>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1620822654987
"
>
<state
x=
"549"
y=
"167"
key=
"FileChooserDialogImpl"
timestamp=
"1620887855953
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
</state>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824"
timestamp=
"1620822654987
"
/>
<state
x=
"549"
y=
"167"
key=
"FileChooserDialogImpl/0.0.1536.824@0.0.1536.824"
timestamp=
"1620887855953
"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
center"
timestamp=
"1620822654987
"
>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
bottom"
timestamp=
"1620894023161
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
</state>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
center/0.0.1536.824@0.0.1536.824"
timestamp=
"1620822654987
"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
bottom/0.0.1536.824@0.0.1536.824"
timestamp=
"1620894023161
"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
left"
timestamp=
"1620822654987
"
>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
center"
timestamp=
"1620894023161
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
</state>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
left/0.0.1536.824@0.0.1536.824"
timestamp=
"1620822654987
"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
center/0.0.1536.824@0.0.1536.824"
timestamp=
"1620894023161
"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
right"
timestamp=
"1620822654987
"
>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.
left"
timestamp=
"1620894023161
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
</state>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824"
timestamp=
"1620822654987"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824"
timestamp=
"1620894023161"
/>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.right"
timestamp=
"1620894023161"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
width=
"1515"
height=
"210"
key=
"GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824"
timestamp=
"1620894023161"
/>
<state
x=
"270"
y=
"57"
key=
"SettingsEditor"
timestamp=
"1619753937072"
>
<state
x=
"270"
y=
"57"
key=
"SettingsEditor"
timestamp=
"1619753937072"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
</state>
...
...
6x2.png
View file @
45d2d024
125 Bytes
|
W:
|
H:
79.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
bell.png
deleted
100644 → 0
View file @
e39f95c4
197 KB
my_cloud.py
View file @
45d2d024
import
wordcloud
import
wordcloud
w
=
wordcloud
.
WordCloud
(
background_color
=
'white'
)
from
PIL
import
Image
with
open
(
'python二级考试大纲.txt'
,
'r'
,
encoding
=
utf
-
8
)
as
f
:
import
numpy
text
=
f
.
read
()
img
=
Image
.
open
(
'bell.png'
)
date
=
numpy
.
array
(
img
)
w
=
wordcloud
.
WordCloud
(
background_color
=
'white'
,
font_path
=
'SimHei.ttf'
,
mask
=
date
)
with
open
(
'python二级考试大纲.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
text
=
f
.
read
()
w
.
generate
(
text
)
w
.
generate
(
text
)
w
.
to_file
()
w
.
to_file
(
'mycloud.png'
)
\ No newline at end of file
\ 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