***牛客网-互联网求职神器和备考学习平台
***菜鸟教程,软件相关的都能从这里学习,很全
***csdn非常好的一个网站,各种技术相关的博客
**知乎,里边有很多的大神,各种问题都能在这里找到专业的回答
**github,来这里找开软项目,可以学习源码
*慕课网
【相关的小项目-找一个适合自己的】
****使用C和C++连接MySQL数据库并进行常用的数据库操作。实现了简单的学生(或职工)信息管理系统
先拿这个试试手,装一下mysql,学习数据库的基本操作,熟悉管理系统的数据结构设计
https://github.com/webary/MySQL_Tools
***项目实战:C/S 和B/S双架构开发"学生-教师管理系统"
https://blog.csdn.net/qq_33154343/article/details/80764005
**c++学生信息管理系统+项目报告
https://blog.csdn.net/nanaz11/article/details/81805520
你读过的最好的 C++ 开源代码是什么?
https://www.zhihu.com/question/21376384
实验室管理系统
https://github.com/hhyvs111/FileManagement
使用Qt开发的一个简单的酒店管理系统
https://github.com/kevinlq/HotelManage
程序设计实践作业——图书管理系统模型
https://github.com/abbshr/MFC-school-project
#coding:utf-8
import os
import re
import collections
from docx import Document
# f = open('demo.docx', 'rb')
# document = Document(f)
# f.close()
document = Document('demo.docx')
gnum=''
gcontent=''
dict={}
dict=collections.OrderedDict()
add_flag='false'
#权利要求存入字典
for value in document.paragraphs:
line=str(value.text).strip()
# 移除非数字的内容
content=re.sub(r'\d+',"", line,count=1).replace(" ","")
num = line.replace(content,"").replace(" ","")
if num!='':
gnum = num
gcontent=''
gcontent=gcontent+content
dict[gnum] = gcontent
#检查权利要求是否有多个句号
def checkMultiplePeriod(content_dict):
print("checkDoublePeriod----begin----")
for key in content_dict:
value=content_dict[key]
pattern = re.compile(r'\。') # 查找句号
result = pattern.findall(value)
if len(result)>1:
print("权利要求%s:多个句号"%key)
print("checkDoublePeriod----end-----")
#检查权利要求序号
def checkOrder(content_dict):
print("checkOrder----begin----")
pre_num=0
for key in content_dict:
current_num=int(key)
if current_num <= 0:
print("权利要求%s:序号<=0"%key)
if current_num<=pre_num:
print("权利要求%s:序号不对"%key)
pre_num=current_num
print("checkOrder----end-----")
#检查权利要求引用的序号是否符合
def checkReferenceOrder(content_dict):
print("checkReferenceOrder----begin----")
lists=[]
for key in content_dict:
current_num=int(key)
lists.append(current_num)
value=content_dict[key]
pattern = re.compile(r'\d+') # 查找全部数字
if current_num <= 0:
print("权利要求%s:序号<=0"%key)
return
result = pattern.findall(value)
if current_num == 1 and len(result)>0
print("权利要求%s:不应该有引用"%key)#检查第一个是否有引用
return
if not(set(result).issubset(set(lists))):
print("权利要求%s:引用的所述不对"%key)
print("checkReferenceOrder----end-----")
#检查权利要求是否包含连续重复的词
def checkContinuousRepetition(s):
print("checkContinuousRepetition----begin----")
"""
:type s: str
:rtype: bool
"""
n=len(s)
for i in range(1,n//2+1):
if n%i==0:
a=s[:i];j=i
while j<n and s[j:j+i]==a:
j += i
if j==n:return True
return False
print("checkContinuousRepetition----end-----")
#-*—coding:utf8-*-
xxxx="我爱北京天安门,天安门前前太阳太阳升"
#xxxx='abab'
def repeatedSubstringPattern(s):
"""
:type s: str
:rtype: bool
"""
n=len(s)
print "n=%d"%n
for i in range(1,n//2+1):
if n%i==0:
a=s[:i];j=i
while j<n and s[j:j+i]==a:
j += i
if j==n:return True
return False
print xxxx
#print repeatedSubstringPattern(xxxx)