码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
1144 The Missing Number (20分)
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:其他好文   时间:2020-05-02 14:56:53    阅读次数:58
1147 Heaps (30分)
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:其他好文   时间:2020-05-02 14:47:58    阅读次数:59
优秀代码样板收集计划(python)
dfs,thread,python3,defaultdict,换根dp Counter,元组map 捕获异常 数组排序翻转切片 bfs accumulate 二维数组读入,math库调用 字符串 counter数组 bisect(lower_bound upper_bound) 列表推导式 dfs, ...
分类:编程语言   时间:2020-05-02 14:33:59    阅读次数:82
C#调用exe程序
private void ExecCheckExe(){ string exefile = "d:\\chktool\\checktool.exe"; if (File.Exists(exefile)) { Process process = new Process(); ProcessStartI ...
分类:Windows程序   时间:2020-05-02 11:59:20    阅读次数:68
2、链表(python实现)
# -*- coding:utf-8 -*-#@Time : 2020/5/2 0:01#@Author: Aluosen#@File : Linklist.py#节点Nodeclass Node: def __init__(self,initdata): self.data = initdata ...
分类:编程语言   时间:2020-05-02 11:49:04    阅读次数:65
批量IP转换成C段
# -*- coding: utf-8 -*- """ @Time : 2020/1/3 16:32 @Auth : oliver @File :ip-c.py @IDE :PyCharm """ def ipToc(ip): ip_c =ip.split('.') # print len(ip_c ...
分类:其他好文   时间:2020-05-02 11:46:36    阅读次数:262
【python3】with的用法
使用的基本思想大致是with所求值的对象必须有一个enter()方法和一个exit()方法。下面给一个简单的例子去说明使用with的时候做了哪些操作 class Sample: def __enter__(self): print "In __enter__()" return "Foo" def ...
分类:编程语言   时间:2020-05-02 11:36:32    阅读次数:143
绿色版Notepad++注册windows右键菜单
建立 新建一个以 扩展名结尾的文本文件,如 ,拷贝如下内容并保存,双击运行加入注册表就好了。 备注: 路径以实际notepad++.exe文件所在的路径为准 卸载 再新建新建一个以 扩展名结尾的文本文件,拷贝如下内容并保存,双击运行加入注册表就好了。 References 1. "绿色版Notepa ...
分类:Windows程序   时间:2020-05-02 09:49:13    阅读次数:142
linux下安装mongodb脚本
#! /bin/bash #download url file_name file_dir define download_url=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.18.tgz file_name=${downloa ...
分类:数据库   时间:2020-05-02 09:24:48    阅读次数:65
ftp上传下载
实现FTP文件上传与下载可以通过以下两种种方式实现(不知道还有没有其他方式),分别为:1、通过JDK自带的API实现;2、通过Apache提供的API是实现。 第一种方式 package com.cloudpower.util; import java.io.File; import java.io ...
分类:Web程序   时间:2020-05-02 09:18:10    阅读次数:56
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!