异常:'latin-1' codec can't encode characters in position 62-66: ordinal not in range(256) 用Python通过pymysql往MySQL数据库中插入数据时,插入的字段含有中文,出现异常: 'latin-1' code ...
分类:
数据库 时间:
2018-09-20 21:25:43
阅读次数:
192
题目描述: Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. 题目来 ...
分类:
编程语言 时间:
2018-09-15 18:21:43
阅读次数:
213
Given a string s consists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string. If the last word ...
分类:
其他好文 时间:
2018-09-13 01:21:39
阅读次数:
162
今天在windows7_x64上安装JDK的时候提示IllegalArgumentException:Invalid characters in hostname, 解决方法: 1.打开【控制面板\系统和安全\系统】,点击【更改设置】 2.修改计算机名 3.重启计算机后再安装JDK(安装之前最好删除 ...
分类:
其他好文 时间:
2018-09-10 22:26:38
阅读次数:
433
Morgana is playing a game called End Fantasy VIX. In this game, characters have nn skills, every skill has its damage. And using skill has special con ...
分类:
其他好文 时间:
2018-09-10 00:53:52
阅读次数:
466
思路: 尺取法。 循环i:1~26,分别计算恰好包含i种字母并且每种字母出现的次数大于等于k个的最长子串长度。 没法直接使用尺取法,因为不满足区间单调性,但是使用如上的方法却是可以的,因为子串中包含的字母种类数是满足区间单调性的。 实现: ...
分类:
其他好文 时间:
2018-09-09 21:05:54
阅读次数:
185
I. Characters with Hash Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, h ...
分类:
其他好文 时间:
2018-09-09 18:14:52
阅读次数:
293
题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. 给定一个只包含字符'(',')','{','}','[ ...
分类:
其他好文 时间:
2018-09-09 15:15:15
阅读次数:
161
题目: Given two strings s and t, determine if they are isomorphic. 给定两个字符串s和t,确定它们是否是同构的。 Two strings are isomorphic if the characters in s can be repla ...
分类:
其他好文 时间:
2018-09-08 11:42:27
阅读次数:
158
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word ...
分类:
其他好文 时间:
2018-09-07 10:57:51
阅读次数:
162