摘要: 内容来自https://www.runoob.com/pandas/pandas-tutorial.html 目录1. Series1.1 Series特点1.2 更多Series说明1.2.1 基本操作1.2.2 基本运算1.2.3 属性和方法2. DataFrame2.1 DataFrame特点 阅读全文
posted @ 2024-02-06 18:19 编程驴子 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #打包, 将dir目录打包为filename.tar tar -cvf filename.tar dir #解包, 将filename.tar解压到当前目录 tar -xvf filename.tar #打包+压缩, 将dir目录打包并压缩为filename.tar.gz tar -zcvf fil 阅读全文
posted @ 2023-11-30 15:07 编程驴子 阅读(9) 评论(0) 推荐(0) 编辑
摘要: VCS dump波形相关选项 目录1 vcs选项2 force tcl中的选项 1 vcs选项 -debug_access+all # 允许dump波形? -debug_region+cell+encrypt # 允许dump cell的波形(stdcell, memory cell等) 2 for 阅读全文
posted @ 2023-10-11 16:33 编程驴子 阅读(342) 评论(0) 推荐(0) 编辑
摘要: [TOC] 内容来源: https://www.runoob.com/perl/perl-database-access.html # 1. 说明 Perl引用是一个标量类型可以指向变量, 数组, 哈希表, 甚至子程序, 可以应用在程序的任何地方. # 2. 创建引用 ```perl my $ref 阅读全文
posted @ 2023-07-17 14:32 编程驴子 阅读(12) 评论(0) 推荐(0) 编辑
摘要: [TOC] 1. substr, rindex, 取出最后一个斜线 之后的所有内容: ```perl #说明: # rindex($a, "/")+1,表示从$a中找出最后一个"/"出现的位置(index); # 位置值加1,表示最后一个"/"出现的位置之后的index; # substr($a, 阅读全文
posted @ 2023-07-17 11:31 编程驴子 阅读(14) 评论(0) 推荐(0) 编辑
摘要: here doc: ```perl # 先定义一个变量, 用于替换. my $a = 90; # 定义Here doc: TEXT: # 1. TEXT两侧 "使用双引号" 与 "不使用引号" 效果相同; # 2. 如果不使用引号,<<与TEXT之间不能有空格; # 3. 如果使用单引号,doc内的 阅读全文
posted @ 2023-07-17 11:30 编程驴子 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 处理时间 [TOC] # 1. localtime localtime,将时间戳转换为可读的时间。 如果没有参数,转换为当前时间。 ```perl # 赋值给标量,得到一个适合人读的字符串。 # 返回Mon Oct 28 10:09:15 2013。 my $local = localtime ; 阅读全文
posted @ 2023-07-17 11:29 编程驴子 阅读(18) 评论(0) 推荐(0) 编辑
摘要: perldoc使用 [TOC] # 1. 查看函数的用法及作用。 ```perl 语法: perldoc [options] -f BuiltinFunction 例子: $ perldoc -t -f rindex # 查看函数rindex的用法、作用; rindex STR,SUBSTR,POS 阅读全文
posted @ 2023-07-17 11:29 编程驴子 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 文件和目录操作 [TOC] # 0. Handler和IO::File的比较 读写文件有两种方法: Handler和IO::File. 使用IO::File的好处是,可以把句柄当作参数,传给子例程。 ```perl use IO::File; my $file = "io.file"; #write 阅读全文
posted @ 2023-07-17 11:28 编程驴子 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 数字处理 [TOC] # 1. cell/floor(向上/向下取整) ```perl use POSIX qw(ceil floor); #向上取整 print ceil(5.5); # 6 print ceil(6) ; # 6 print ceil(6.1); # 7 print ceil(6 阅读全文
posted @ 2023-07-17 10:08 编程驴子 阅读(38) 评论(0) 推荐(0) 编辑