Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1_homework_安晓东
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
安晓东
1_homework_安晓东
Commits
ff7c863a
Commit
ff7c863a
authored
Jan 14, 2019
by
安晓东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update homework_01.py
parent
627a9269
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
homework_01.py
+11
-1
No files found.
homework_01.py
View file @
ff7c863a
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
# J = "z"
# J = "z"
# S = "ZZ"
# S = "ZZ"
# numJewelsInStones(J, S)
# numJewelsInStones(J, S)
#
宝石与石头
#
山峰数组
# def peakIndexInMountainArray(A):
# def peakIndexInMountainArray(A):
# """
# """
# :type A: List[int]
# :type A: List[int]
...
@@ -45,6 +45,16 @@
...
@@ -45,6 +45,16 @@
# return A.index(max(A))
# return A.index(max(A))
# peakIndexInMountainArray([0,1,0]) # 预期输出 1
# peakIndexInMountainArray([0,1,0]) # 预期输出 1
# 宝石与石头
# def numJewelsInStones(J, S):
# """
# :type J: str
# :type S: str
# :rtype: int
# """
# return sum([s in J for s in S])
# numJewelsInStones("aA","aAAbbbb") # 预期输出 3
import
re
import
re
s
=
'1324.231.432.1234,192.168.1.6,10.25.11.8这些信息中,哪些是ip呢?'
s
=
'1324.231.432.1234,192.168.1.6,10.25.11.8这些信息中,哪些是ip呢?'
...
...
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