Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiryuu Sakuya
data-analysis
Commits
35afeaed
Unverified
Commit
35afeaed
authored
Nov 02, 2020
by
Kiryuu
Browse files
Initial commit
parents
Changes
47
Hide whitespace changes
Inline
Side-by-side
01. Python regex/03. regex tutorial/step5/.idea/vcs.xml
0 → 100644
View file @
35afeaed
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$/.."
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
01. Python regex/03. regex tutorial/step5/.idea/workspace.xml
0 → 100644
View file @
35afeaed
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"4e213d9f-1e61-4121-a4d8-2212d37b1ed5"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/../step2/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../step2/.idea/workspace.xml"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
<component
name=
"Git.Settings"
>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$/.."
/>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"2108"
/>
<option
name=
"y"
value=
"303"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"780"
/>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"true"
/>
<component
name=
"ProjectView"
>
<navigator
proportions=
""
version=
"1"
>
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
<panes>
<pane
id=
"ProjectPane"
/>
<pane
id=
"Scope"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
</component>
<component
name=
"RunDashboard"
>
<option
name=
"ruleStates"
>
<list>
<RuleState>
<option
name=
"name"
value=
"ConfigurationTypeDashboardGroupingRule"
/>
</RuleState>
<RuleState>
<option
name=
"name"
value=
"StatusDashboardGroupingRule"
/>
</RuleState>
</list>
</option>
</component>
<component
name=
"SvnConfiguration"
>
<configuration
/>
</component>
<component
name=
"TaskManager"
>
<task
active=
"true"
id=
"Default"
summary=
"Default task"
>
<changelist
id=
"4e213d9f-1e61-4121-a4d8-2212d37b1ed5"
name=
"Default Changelist"
comment=
""
/>
<created>
1563157738483
</created>
<option
name=
"number"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1563157738483
</updated>
<workItem
from=
"1563157739733"
duration=
"78000"
/>
<workItem
from=
"1563157818869"
duration=
"11000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"89000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"2108"
y=
"303"
width=
"1440"
height=
"780"
extended-state=
"0"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.2536232"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
<window_info
id=
"Favorites"
order=
"2"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"8"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"12"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.25"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"right"
id=
"SciView"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"4"
/>
</layout>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<option
name=
"version"
value=
"1"
/>
</component>
</project>
\ No newline at end of file
01. Python regex/03. regex tutorial/step5/student_step_5.py
0 → 100644
View file @
35afeaed
# coding=utf-8
import
re
input_str
=
input
()
# 编写获取she或者he的字符串,并存储到变量a中
########## Begin ##########
########## End ##########
print
(
a
)
01. Python regex/03. regex tutorial/step6/student_step_6.py
0 → 100644
View file @
35afeaed
# coding=utf-8
import
re
input_str
=
input
()
# 1、基于贪心模式匹配字符串中重复出现2个数字的子字符串,并存储到变量a。
########## Begin ##########
########## End ##########
print
(
a
)
# 2、基于贪心模式匹配字符串中重复出现4-7个数字的子字符串,并存储到变量b。
########## Begin ##########
########## End ##########
print
(
b
)
01. Python regex/03. regex tutorial/step8/student_step_8.py
0 → 100644
View file @
35afeaed
# coding=utf-8
import
re
input_str
=
input
()
# 1、编写获取到数字的正则,并输出匹配到的信息
########## Begin ##########
########## End ##########
# 2、编写获取到不是数字的正则,并输出匹配到的信息
########## Begin ##########
########## End ##########
01. Python regex/03. regex tutorial/step8/test_step_8.py
0 → 100644
View file @
35afeaed
# coding=utf-8
import
re
input_str
=
input
()
# 1、编写获取到数字的正则,并输出匹配到的信息
###### Begin ######
a
=
re
.
findall
(
r
'[0-9]'
,
input_str
)
print
(
a
)
####### End #######
# 2、编写获取到不是数字的正则,并输出匹配到的信息
###### Begin ######
b
=
re
.
findall
(
r
'[^0-9]'
,
input_str
)
print
(
b
)
####### End #######
01. Python regex/03. regex tutorial/step9/student_step_9.py
0 → 100644
View file @
35afeaed
# coding=utf-8
import
re
input_str
=
input
()
# 1、编写获取到单词的正则,并输出匹配到的信息
########## Begin ##########
########## End ##########
# 2、编写获取到不是单词的正则,并输出匹配到的信息
########## Begin ##########
########## End ##########
Prev
1
2
3
Next
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