摘要: 1.打开文件packaging_tool.py: D:\Program files\pycharm\PyCharm 2016.3.2\helpers\packaging_tool.py 2.添加导入: import pip._internal as pip_new 3.修改参数 修改前的代码为: d 阅读全文
posted @ 2018-11-18 06:06 村西崔二 阅读(182) 评论(0) 推荐(0) 编辑
摘要: os模块 os.path.dirname() 返回路径中的目录路径 >>> os.path.dirname('C:\Windows\System32\drivers\etc\hosts') 'C:\\Windows\\System32\\drivers\\etc' os.path.abspath() 阅读全文
posted @ 2018-11-17 10:25 村西崔二 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1.SVM(Support Vector Method) 通过在属于两个不同类别的两组数据点之间找到良好决策边界来解决分类问题。决策边界可以看作是一条直线或一个平面,将训练数据划分为两块空间,分别对应于两个类别。 2.决策树(Decision tree) 类似于流程图,可以对输入数据点进行分类或根据 阅读全文
posted @ 2018-11-06 19:04 村西崔二 阅读(167) 评论(0) 推荐(0) 编辑
摘要: import sysIP_input = input("Please input IP:")DNS_input = input("Please input Domain-Name:")if sys.platform == 'win32': with open(r'C:\Windows\System3 阅读全文
posted @ 2018-10-15 22:01 村西崔二 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 带参数的Python装饰器 阅读全文
posted @ 2018-10-10 16:17 村西崔二 阅读(74) 评论(0) 推荐(0) 编辑
摘要: # -*-coding:utf8 -*-import os#print(os.getcwd())users = open('username.txt', 'r')password = open('password.txt', 'r')lock_user = open('lock.txt', 'r') 阅读全文
posted @ 2017-03-22 22:37 村西崔二 阅读(107) 评论(0) 推荐(0) 编辑
摘要: """Modify file name,remove the numbers from file namePython2.X"""# -*- coding: utf8 -*-import osdef rename_files(): # (1) get file names in a folder f 阅读全文
posted @ 2017-03-22 17:43 村西崔二 阅读(446) 评论(0) 推荐(0) 编辑
摘要: """Use python open browser after two hours """#-*- coding:utf8 -*-import timeimport webbrowsertotal_break = 3break_count = 0print("This Program starte 阅读全文
posted @ 2017-03-22 15:07 村西崔二 阅读(137) 评论(0) 推荐(0) 编辑