清流Cyl
码龄7年
关注
提问 私信
  • 博客:113,443
    社区:4
    113,447
    总访问量
  • 97
    原创
  • 1,474,960
    排名
  • 7
    粉丝
  • 0
    铁粉

个人简介:个人主页 filwc.cn

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2017-12-21
博客简介:

清流的博客

博客描述:
清流
查看详细资料
个人成就
  • 获得25次点赞
  • 内容获得5次评论
  • 获得101次收藏
创作历程
  • 1篇
    2022年
  • 1篇
    2021年
  • 99篇
    2018年
成就勋章
TA的专栏
  • shell
    1篇
  • GO
    1篇
  • android(代码来自《第一行代码》-郭霖)
    24篇
  • python
    51篇
  • 算法-java
    9篇
  • java日常
    11篇
  • python爬虫
    3篇
  • 其他
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

shell-变量作用域

调用其他脚本中的函数时, 若函数中使用了函数所在文件的变量但是当前sheell脚本并没有导入函数所在脚本, 变会出现可以访问函数但是函数无法访问变量的问题代码示例a.sh#!/bin/bashstr="sss"function getStr(){ echo "str=${str}"}b.sh#!/bin/bash# 导入. ./a.shecho "run getStr in b.sh"getStrecho "run getStr in c.sh"./c.s
原创
发布博客 2022.03.01 ·
608 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

GO 类型转换 (*struct)(nil)

package mainimport "reflect"type Info struct { Name string}func TestFunc(i interface{}) { configType := reflect.TypeOf(i) println(configType.String())}func main() { TestFunc((*Info)(nil))}输出 *mian.Info
原创
发布博客 2021.08.12 ·
1121 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

csrf校验插件-js

发布资源 2019.05.03 ·
js

小说下载器

该程序使用了分布式进程的方法,在服务器端发布任务。在多台客户端同时进行下载,大大的提高了下载效率,同时,在对页面进行解析时使用了多个进程,分别用于提取新的URL和章节内容,以下是源码 服务器端源码:给部分源码分为两部分,第一部分为任务发布器,第二部分将各个客户端返回的数据写入TXT文件中第一部分:#coding:utf-8从multiprocessing.managers...
原创
发布博客 2018.08.02 ·
2675 阅读 ·
1 点赞 ·
0 评论 ·
5 收藏

java---迭代器

目录Iterator ListIterator Iterator(单向移动)创建:List<?> list = new ArrayList<?>();Iterator <?> it = list.iterator();判断容器中是否还有元素:it.hasNext();获取元素:it.next();移除元素:(在...
原创
发布博客 2018.07.28 ·
212 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

java-工厂模式示例

interface Service{    void method1();    void method2();}interface ServiceFactory{    Service getService();}class Implementation1 implements Service{    Implementation1() {        // TODO...
转载
发布博客 2018.07.27 ·
413 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Java 中到底是应该用接口类型 还是实现类的类类型去引用对象?

eg//implA 为接口 ClassB为其实现类implA A=new ClassB();//接口类型的引用变量A 去接收对象地址orClassB A=new ClassB();//类类型的引用变量A 去接收对象地址完整文章  :https://blog.csdn.net/summerxiachen/article/details/79733800文章中提到的工厂模式示例:h...
转载
发布博客 2018.07.27 ·
535 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

java--内部类中.this与.new用法

.this   生成对外部类的引用public class DotThis {    void f(){        System.out.println("DotThis.f()");    }    public class Inner{        public DotThis outer(){            return DotThis.this;     ...
原创
发布博客 2018.07.27 ·
6404 阅读 ·
1 点赞 ·
0 评论 ·
6 收藏

java--在构造函数中调用其他构造函数

使用 this 关键字public class Flower {    int petalCount = 0;    String s = "cyl is qingliu";    Flower(int petals){        System.out.println("int");        petalCount = petals;    }        Flow...
原创
发布博客 2018.07.25 ·
19680 阅读 ·
4 点赞 ·
0 评论 ·
10 收藏

python将数据写入txt文件\n无法换行问题

若将数据写入txt文件时使用
无法换行则使用 \r
(回车+换行)
原创
发布博客 2018.07.23 ·
18407 阅读 ·
3 点赞 ·
2 评论 ·
8 收藏

java-标签的使用

public class Test {    public static void main(String[] args) {        int sum =0;        label1:            for(int i = 0;i<5;i++){                    for(int j = 0; j< 2;j++){                 ...
原创
发布博客 2018.06.26 ·
184 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

python-不可变性

1.不可变性定义:变量在创建后不能原地改变2.不可变性:数字、字符串、元组3.可变:列表、字典eg:字符串:     
原创
发布博客 2018.06.19 ·
342 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

基于python的小游戏,休闲娱乐

发布资源 2018.05.24 ·
rar

python2.x与3.x区别

1.cpickle            2.x:  import cpickle            3.x  import _pickle as cPickle2.print            2.x:  print ""            3.x: print("")3.
原创
发布博客 2018.05.24 ·
187 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Arrays类-java

1.位置:java,util.Arrays2.Arrays.fill(i, 47);        用数字47将数组i填充3.System.arraycopy(i, 0, j, 0, i.length);        将i中o-i.len的内容复制到j4.Arrays.equals(i, j)        比较两个数组是否相等5.Arrays.deepEquals()        比较多维数...
原创
发布博客 2018.05.24 ·
209 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

基于python的人脸识别程序

发布资源 2018.05.24 ·
rar

基于神经网络的数字识别程序

发布资源 2018.05.24 ·
rar

网上书城(基于asp.net)

发布资源 2018.05.24 ·
rar

简单的邮件发送程序-python

from email.mime.text import MIMETextfrom email.header import Headerfrom email.utils import parseaddr,formataddrimport smtplibdef _format_addr(s):    name,addr = parseaddr(s)#解析邮箱地址    return formatadd...
原创
发布博客 2018.05.22 ·
344 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

页面图片爬取-python

import urllibfrom lxml import etreeimport requestsdef Schedule(blocknum,blocksize,totalsize):    '''    blocknum:已经下载的数据块    blocksize:数据块大小    totalsize:远程文件的大小    '''    per  = 100*blocknum* blocksi...
原创
发布博客 2018.05.22 ·
304 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多