配置文件 说明 执行时间 是否重启 有效范围 /etc/profile 为系统的每个用户设置环境信息,从/etc/profile.d目录 的配置文件中搜集shell的设置. 当用户第一次登录时 重启或者source操作 所有 /etc/bashrc 为系统中的每个用户打开bash shell时执行. ...
分类:
系统相关 时间:
2020-05-01 01:08:37
阅读次数:
76
file.h namespace TestXT{ void fun1(); } file.cpp void TestXT::fun1(){ } 调用: TestXT::fun1(); ...
分类:
编程语言 时间:
2020-05-01 01:02:17
阅读次数:
65
IO编程简介 IO在计算机中指Input/Output,也就是输入和输出。由于程序和运行时数据是在内存中驻留,由CPU这个超快的计算核心来执行,涉及到数据交换的地方,通常是磁盘、网络等,就需要IO接口。 比如你打开浏览器,访问新浪首页,浏览器这个程序就需要通过网络IO获取新浪的网页。浏览器首先会发送 ...
分类:
编程语言 时间:
2020-05-01 00:53:55
阅读次数:
65
1 import java.io.File; 2 //查找某个路径中的某类文件 3 public class FileDemo7 { 4 public static void main(String[] args) { 5 File file=new File("c:\\"); 6 File []f ...
分类:
其他好文 时间:
2020-05-01 00:52:00
阅读次数:
46
目录导航 输出函数 Python3.x - print() Python2.x - print() 输入函数 Python3.x - input() Python2.x - raw_input() Python2.x - input() 字符串格式化 % .format() Python3.x - ...
分类:
其他好文 时间:
2020-05-01 00:50:39
阅读次数:
79
帝国cms 发布一篇文章会影响哪些数据表 insert into phome_enewsfile_1(pubid,filename,filesize,adduser,path,filetime,classid,no,type,id,cjid,onclick,fpath) VALUES('0','af ...
分类:
其他好文 时间:
2020-04-30 23:35:36
阅读次数:
101
``` from django.utils.encoding import escape_uri_path from django.shortcuts import HttpResponse def file_download(request): file_name = "凸凸.jpg" res =... ...
分类:
其他好文 时间:
2020-04-30 22:56:52
阅读次数:
121
一、文件的读出: file = open('url/data.txt','r',encoding='utf-8')#打开模式r w a,当文件在当前工作区域直接写文件名;如果不在当前工作区域要写绝对地址 res = f.read()#读文件,获取文件里面的全部内容 res2 = f.readline ...
分类:
其他好文 时间:
2020-04-30 19:25:44
阅读次数:
90
若要问构成一个“操作系统”的最重要的部件是什么,那就莫过于进程管理和文件系统了。 文件系统调用 VFS 具体文件系统 VFS文件系统与具体文件系统的连接通过:file_operations、inode_operations、dentry_operations、super_operations数据结构 ...
分类:
其他好文 时间:
2020-04-30 17:37:19
阅读次数:
93