fgets(char *,int x,file *) (1)一般若读取的字符数小于X-1,且使用换行来结束本行的输入,且换行符也保存在str中; fgets(str[i],61,stdin); 输入59个字符,则str[59] == '\n' 成立; 输入40个字符,则str[40] == '\n' ...
分类:
其他好文 时间:
2020-04-17 00:13:59
阅读次数:
50
最近写脚本,需要对脚本中函数传递的路径参数进行截取,发现了以下比较好用的方法,记录下: file=/dir1/dir2/dir3/my.file.txt 我们可以用${ }分别替换获得不同的值: ${file#*/}:拿掉第一条/及其左边的字串:dir1/dir2/dir3/my.file.txt ...
分类:
系统相关 时间:
2020-04-16 22:54:37
阅读次数:
134
一 什么是异常 异常是程序发生错误的信号。程序一旦出现错误,便会产生一个异常,若程序中没有处理它,就会抛出该异常,程序的运行也随之终止。 而错误分成两种,一种是语法上的错误SyntaxError,这种错误应该在程序运行前就修改正确 >>> if File "<stdin>", line 1 if ^ ...
分类:
编程语言 时间:
2020-04-16 20:59:06
阅读次数:
121
小程序中提供了两种录音的API,wx.startRecord和wx.getRecorderManager(),前一个现在微信团队已经不再维护,所以在这里写一下新的录音管理,比之前要强大 1.小程序录音管理介绍 wx.getRecorderManager() 基础库 1.6.0 开始支持,低版本需做兼 ...
分类:
微信 时间:
2020-04-16 20:56:14
阅读次数:
114
ssl分步骤1、访问es集群设置 2、kibana访问es集群设置3、es集群内部各节点设置4、logstash访问es设置5、filebeat访问logstash设置 ...
分类:
其他好文 时间:
2020-04-16 19:25:08
阅读次数:
166
C# Winform开发中使用了CefSharp,之前在VS2012中运行很正常,今天换了一台Windows XP 打开VS2010 运行时,发生异常:System.IO.FileNotFoundException;Coloud not load file or assembly ‘CefSharp ...
No such file or directory: /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro None None
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro] returned with code [2].
分类:
其他好文 时间:
2020-04-16 18:08:29
阅读次数:
103
我这边有200多台tomcat主机,200多个端口,端口都不一样,如何按照自带模板,我至少需要克隆200多个模板,如何做标准?
分类:
其他好文 时间:
2020-04-16 18:04:09
阅读次数:
63
@Test public void modifyTest() throws IOException { File file = new File("/Users/zl/pending file/修复数据.txt"); List<String> list = FileUtils.readLines(f ...
分类:
编程语言 时间:
2020-04-16 18:03:48
阅读次数:
159
1.新建一文件 例:File(文件)-->New Model(新模型)-->Physical DataModel(物理数据模型) >Physical Diagram(物理图) >Model Name(模型名称)或DBMS(数据库管理系统) 如果改变了路径,则找不到驱动,这是需要改回默认路径,如下: ...
分类:
数据库 时间:
2020-04-16 15:04:02
阅读次数:
138