打开“PyCharm”点击“File”,选择“Settings...” 添加#-*-coding:utf-8-*- 关闭pycharm,将输入法更新到最新,再重新启动pycharm,输入中文成功 ...
分类:
其他好文 时间:
2018-09-22 19:51:12
阅读次数:
220
USE [crm2]GO/****** Object: StoredProcedure [dbo].[GetBillsID] Script Date: 09/22/2018 15:13:35 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- ...
分类:
其他好文 时间:
2018-09-22 19:48:47
阅读次数:
212
刚开始真的没想到什么好算法,然后就看到了数据规模,小于5000...这不是在逗我么. 那么就可以支持n^2的算法了,对于每个点跑一次dfs,每个到达的点记录flag[i][now]=1,最后找最大值并输出. 明明是n^2为啥有快超时的啊?不懂 ...
分类:
其他好文 时间:
2018-09-22 16:01:18
阅读次数:
196
题目传送门:HDU - 6115 Factory 题目大意: (中文题,简单解答下题意) 存在N个城市和M个百度的子公司,N个城市间有N-1条道路连接(一颗树),每个子公司都有办公室,办公室分布在各个城市,现在提问,两个子公司间的最小距离。 分析: 枚举提问的两个子公司的办公室间的距离,求出最短距离 ...
分类:
其他好文 时间:
2018-09-22 14:44:15
阅读次数:
180
Linux注册系统服务步骤 1.编写服务脚本 2.拷贝到/etc/init.d目录下 3.为服务脚本添加可执行权限 >>chmod a+x xxxd 4.添加到系统服务中 >>chkconfig --add xxxd 5.检测是否添加成功 >>chkconfig --list | grep xxxd ...
分类:
系统相关 时间:
2018-09-22 12:58:18
阅读次数:
208
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mi ...
分类:
其他好文 时间:
2018-09-22 12:25:56
阅读次数:
138
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-09-22 10:32:40
阅读次数:
133
activeMq简单实例: package com.gordon; import org.apache.activemq.ActiveMQConnectionFactory; import javax.jms.*; /** * 生产者 * Created by gordon on 2018/9/8. ...
分类:
其他好文 时间:
2018-09-22 01:06:27
阅读次数:
196
# _*_ coding: utf-8 _*_# 大前提:# 文件内指针的移动是按Bytes为单位的,# 唯读t模式下的read读取内容个数是以字符为单位# with open('a.txt',mode='rt',encoding='utf-8') as f:# data = f.read(3) # ...
分类:
移动开发 时间:
2018-09-21 23:07:17
阅读次数:
240
__author__ = '12711'#-*- coding:utf-8 -*-f=open("F",'r')#读文件#f=open("F",'w')#写文件f=open("F",'r+')#读写#f=open("F",'w+')#写读#f=open("F",'rb')#二进制文件#f=open( ...
分类:
编程语言 时间:
2018-09-21 19:46:47
阅读次数:
157