C#和PHP 长整型时间互转

//2018/5/14 16:03:05转换:1526284985 public static double ConvertToDouble(DateTime date) { var baseTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); var ts = date - baseTime;
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

数据分析--pandas的基本使用

一、pandas概述 1.pandas是一个强大的Python数据分析的工具包,是基于NumPy构建的。 2.pandas的主要功能 具备对其功能的数据结构DataFrame、Series 集成时间序列功能 提供丰富的数学运算和操作 灵活处理缺失数据 3.python中操作方式: 安装方法:pip install pandas 引用方法:import pandas as pd 4.也可以通过安装anaconda软件操作,里面包含(numpy,pandas以及Matplotlib多个库),本片文
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

打印数组所有排列 python

本人.net一名,最近在看数据结构与算法分析,中间涉及的一些比较有意思的算法题,打算用python实现以下。选择python的原因,就是想熟悉一下python的语法,和pycharm基本的应用。 本篇,算法为:打印数组的所有排列可能。废话不多说,直接上代码。 1 #自动生成list 2 def creataList(n): 3 numlist=[]; 4 for i in range(n): 5 numlist.append(i); 6 7
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

78 最长公共前缀

原题网址:https://www.lintcode.com/problem/longest-common-prefix/description 描述 给k个字符串,求出他们的最长公共前缀(LCP) 您在真实的面试中是否遇到过这个题? 是 样例 在 "ABCD" "ABEF" 和 "ACEF" 中, LCP 为 "A" 在 "ABCDEFG", "ABCEFG", "ABCEFA" 中, LCP 为 "ABC" 标签 枚举法 基本实现 字符串处理 LintCode 版权所有 思路:这道题比较简单
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

hdu-3276-dp+二分+单调队列

Star Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 516 Accepted Submission(s): 213 Problem Description One of Resty's interests is to watch stars. The Stars are so beautiful! Lyra's Vega, Alpha
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

Java基础十二

1 StringBuffer 1.1 StringBuffer的概述 如果我们需要对字符串进行拼接操作,每次拼接,都会构建一个新的String对象,既耗时,又浪费空间。而StringBuffer就可以解决这个问题。 StringBuffer是线程安全的字符序列。 1.2 构造方法 构造方法:无参数构造方法 public StringBuffer() 构造方法:指定字符串缓冲区的容量 public StringBuffer(int capacity) 构造方法:指定字符串缓冲区的字符串内容 pu
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

Spring框架的ApplicationContextInitializer

  待完善。
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

题解报告:poj 2386 Lake Counting(dfs)

Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water ('W') or dry land ('.'). Farmer John w
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

【LeetCode】83.删除排序链表中的重复元素

/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* deleteDuplicates(ListNode* head) { set<int>
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

学生成绩统计分析表

&amp;lt;!DOCTYPE html&amp;gt; &amp;lt;!--[if IE 8]&amp;gt; &amp;lt;html lang=&quot;en&quot; class=&quot;ie8 no-js&quot;&amp;gt; &amp;lt;![endif]--&amp;gt; &amp;lt;!--[if IE 9]&amp;gt; &amp;lt;html lang=&quot;en&quot; class=&quot;ie9 no-js&quot;&amp;gt; &am
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

poi3.17 导出Excel通用模板及实现流程

&amp;lt;div onclick=&quot;daochu()&quot;&amp;gt; 导出 &amp;lt;/div&amp;gt;function daochu(){ var url = &quot;../biz/sch/student/exportTest&quot;; url = encodeURI(url); location.href = url; } @ResponseBody @GetMappin...
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

CentOS7.3上部署安装Oracle12c

在CentOS7上安装Oracle的方法,速速get起来
分类: 数据库 发布时间: 07-12 23:21 阅读次数: 0

pxe 手动装centos7

一、安装软件yuminstallhttpdxinetdsyslinuxtftp-serverdhcp-y二、配置pxecd/usr/share/syslinux/cppxelinux.0menu.c32memdiskmboot.c32chain.c32/var/lib/tftpboot/vi/etc/xinetd.d/tftp#change“disable=yes”to“no”mount-oloo
分类: 企业开发 发布时间: 07-12 23:21 阅读次数: 0

Java Excel导入及数据解析详解

批量更新:&amp;lt;select class=&quot;default_input&quot; id=&quot;plgx_id&quot;&amp;gt; &amp;lt;option value=&quot;s0&quot;&amp;gt;批量更新&amp;lt;/option&amp;gt; &amp;lt;option value=&quot;s1&quot;&amp;gt;状态&amp;lt;/option&amp;gt; &amp;lt;option value=&quot;
分类: 其他 发布时间: 07-12 23:21 阅读次数: 0

MyBatis查询传递混合参数

分类: 其他 发布时间: 07-12 23:20 阅读次数: 0

使用resultMap映射结果集

分类: 其他 发布时间: 07-12 23:20 阅读次数: 0

python 学习 站队顺序输出 DAY2

描述有一群人站队,每人通过一对整数(h, k)来描述,其中h表示人的高度,k表示在此人前面队列中身高不小于此人的总人数。实现一个算法输出这个队列的正确顺序。 输入格式 输入格式为二维列表,即 list[list[]]形式外层list包含队列中全部的人,内层list为[h,k]格式,代表个人信息。  输出格式输出格式为:list[list[int]]形式与输入格式一样,需要按照队列顺序排列。 输入输...
分类: 其他 发布时间: 07-12 23:20 阅读次数: 0

python 学习 合法括号组合的生成 DAY3

合法括号组合的生成描述     给定括号的个数n,编写程序生成所有格式正确的括号组合。 输入格式  输入一个整数。   输出格式    输出为一个列表,每个元素是一个字符串,表示一个可能的括号组合。 输入输出示例  输入 输出示例 1 3 ['((()))', '(()())', '(())()', '()(())', '()()()'] def f(oput,first,last,iput): ...
分类: 其他 发布时间: 07-12 23:19 阅读次数: 0

python 学习 用户登录(三次机会) DAY4

用户登录(三次机会)描述给用户三次输入用户名和密码的机会,要求如下:1)如输入第一行输入用户名为‘Kate’,第二行输入密码为‘666666’,输出‘登录成功!’,退出程序;2)当一共有3次输入用户名或密码不正确输出“ ”。 输入输出示例   输入 输出示例 1 Kate666666 登录成功!示例 2 kate123alice456john111111 3次用户名或者密码均有误!退出程序。 us...
分类: 其他 发布时间: 07-12 23:19 阅读次数: 0

python 学习 hamlet DAY5

def getText():    txt = open(r&quot;C:\Users\lenovo\Desktop\hamlet.txt&quot;,&quot;r&quot;).read()   #“\“字符串前加r,表路径    txt = txt.lower()    for ch in &quot;~!@#$%^&amp;amp;*()=-&quot;:        txt = txt.replace(ch,&quot;&quot;)    return txthaml...
分类: 其他 发布时间: 07-12 23:19 阅读次数: 0