摘要: 阿里巴巴面试题 1、使用 Shell 命令,从 example.log 日志文件中,统计最后 100 行内,包含 "test" 字符串的行数2、使用任意语言,递归地将某个磁盘目录下的 jpeg 文件的扩展名修改为 jpg 第一题答案:tail -n 100 example.log|grep "tes 阅读全文
posted @ 2022-10-17 11:34 多测师_王sir 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 分析以下数字的规律, 1 1 2 3 5 8 13 21 34用Python语言编程实现输出 #斐波那契数列 l = [] for i in range(10): if i == 0 or i == 1: l.append(1) #初始值 else: l.append(l[i-2]+l[i-1]) 阅读全文
posted @ 2022-10-17 11:10 多测师_王sir 阅读(38) 评论(0) 推荐(0) 编辑