Python对字符串的处理真的是太方便了。 举个例子,我们要去除字符串里面的元音,通过俩重循环比对然后再用另一个字符输出即可。 def anti_vowel(text): t='' for i in text : for j in "aerouAEROU": if i == j: #不把字符复制过去 ...
分类:
编程语言 时间:
2018-09-03 19:23:45
阅读次数:
124
This example demonstrates how to convert a byte array of pixel values that are indices to a color table into a BufferedImage. In particular, the examp ...
分类:
其他好文 时间:
2018-09-03 00:06:17
阅读次数:
176
// See e575 The Quintessential Drawing Program public void paint(Graphics g) { // Retrieve the graphics context; this object is used to paint shapes G... ...
分类:
其他好文 时间:
2018-09-02 23:42:05
阅读次数:
237
1、 如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 2、 如何新增一条记录 (1)、gridView.AddNewRow() (2)、实现 gridView_InitNewRow 事件 3、如何解决 GridContr ...
分类:
其他好文 时间:
2018-09-02 01:49:36
阅读次数:
196
文章来自网易云社区 4 Golang垃圾回收的相关参数 4.1 触发GC gc触发的时机:2分钟或者内存占用达到一个阈值(当前堆内存占用是上次gc后对内存占用的两倍,当GOGC=100时) 4.2 查看GC信息 可以查看gctrace信息。 举例: 每个字段表示什么信息可以参考 golang doc ...
分类:
其他好文 时间:
2018-08-28 18:53:40
阅读次数:
164
https://nanti.jisuanke.com/t/19978 acm提交:类 Main 使用java:高精度 BigInteger ...
分类:
其他好文 时间:
2018-08-24 00:43:09
阅读次数:
300
在数据库原有的字段(列)中创建新的字段。 计算字段是运行时在SELECT语句内创建的。 拼接字段 vendors表中存在字段vend_name, vend_country,现在需要创建二者的组合字段vend_name(vend_country) ,并将其命名为vend_title mysql> SE ...
分类:
数据库 时间:
2018-08-23 20:59:22
阅读次数:
207
package cst.spmBase.util; import java.lang.reflect.InvocationTargetException;import java.util.ArrayList;import java.util.List;import java.util.Map;imp ...
分类:
其他好文 时间:
2018-08-22 17:03:14
阅读次数:
152
基于 Scrapy-redis 的分布式爬虫设计 目录 前言 安装 环境 Debian / Ubuntu / Deepin 下安装 Windows 下安装 基本使用 初始化项目 创建爬虫 运行爬虫 爬取结果 进阶使用 分布式爬虫 anti-anti-spider URL Filter 总结 相关资料 ...
分类:
其他好文 时间:
2018-08-22 12:43:09
阅读次数:
243
个人总结了一些不错的基础视频教程 视频链接地址(猛戳这里) ...
分类:
其他好文 时间:
2018-08-21 19:06:43
阅读次数:
154