- 博客(4)
- 收藏
- 关注
原创 Python变量传递以及内存地址的改变问题
最近新学习Python,其变量的不需定义类型真是让我一头包。#coding=utf-8def test(num): print(str(id(num))+" >>> 2") num = 100 print(str(id(num))+" >>> 3")num = 200print(str(id(num))+" >>> 1")te
2017-09-11 18:06:24 6431
原创 vi格式整体缩进
很多时候拷贝别人的代码都会遇到这样的情况,一段杂乱的代码, isdd = 1 asd= 1 cxc = 1 czxc= 1 fdfd= 1 gdg = 1 zxc= 1
2017-08-31 19:21:25 4381
原创 linux批量更改文件所有者
刚学完shell脚本基础知识,刚才改变文件夹的所有用户时,突然想到能不能写个脚本批量更改,于是就有了这个。 1 #!/bin/bash 2 #ecoding=utf-8 3 4 5 #先过滤出第一个文件的所有者,名字赋给str 6 i=1 7 str=$( echo -e "$(ls -l)\n"| grep ^[^d] | grep ^- | aw
2017-08-24 19:00:33 967
原创 通过多态生成对象和直接创建对象的区别
这是父接口,写了两个test方法。package com.wjc.Nio;/** * Created by wang.jiancheng on 2017/8/4. */interface InterParent { public void test1(); public void test2();}这是子类,实现了父接口的方法后自己也写了个test方法。package
2017-08-04 14:41:13 3017 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人