上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页
摘要: #!/usr/bin/python #coding=utf-8 #好好学习,天天向上 for value in range(1,6): print(value) 阅读全文
posted @ 2020-12-30 22:42 tigergaonotes 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1.python会根据缩进来判断代码行和前一句代码行之间的关系 2.for循环后一定要缩进,for循环后面的冒号代表告诉python,下面是代码行缩进的第一行 阅读全文
posted @ 2020-12-30 22:38 tigergaonotes 阅读(264) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python #coding=utf-8 #好好学习,天天向上 magicians=['alice','david','candy'] for magician in magicians: print(f"{magicians},that was a great trick!" 阅读全文
posted @ 2020-12-30 22:33 tigergaonotes 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.del message[0] 知道位置不知道值 2.message.remove('a') 知道值不知道位置 3.message.sort()--正向永久排序 4.message.sort(reverse=true)--反向永久排序 5.倒着打印列表: message.reverse() pri 阅读全文
posted @ 2020-12-29 22:12 tigergaonotes 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 转:https://m.sogou.com/web/id=4c468b90-3f64-418c-acf8-990b5fe2a757/keyword=python%20os%E6%A8%A1%E5%9D%97%E8%AF%BB%E5%8F%96%E8%AE%B0%E4%BA%8B%E6%9C%AC%E 阅读全文
posted @ 2020-12-29 21:56 tigergaonotes 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 用list类的sort方法 l1 = ['b','c','d','b','c','a','a'] l2 = list(set(l1)) l2.sort(key=l1.index) print l2 阅读全文
posted @ 2020-12-29 18:20 tigergaonotes 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 常用maven命令 执行与构建过程(编译,测试,打包)相关的命令必须进入pom.xml所在位置执行 mvn clean:清理(打包好的程序放在生成的名为target的文件中,清理即删除文件中打包好的程序) mvn compile:编译主程序 mvn test-compile:编译测试程序 mvn t 阅读全文
posted @ 2020-12-27 23:23 tigergaonotes 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-27 21:34 tigergaonotes 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 转:https://www.tuicool.com/wx/vEVrqeR 06 python开发之函数 博客园精华区12-12 20:56 06 python开发之函数 目录 6.2 调用函数与函数返回值 6.2.1 调用函数三种形式 6.2.2 函数的返回值return(函数的产品) 6.5 可变 阅读全文
posted @ 2020-12-27 21:25 tigergaonotes 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 手把手教你用Strace诊断问题 发表于2015-10-16 早些年,如果你知道有个 strace 命令,就很牛了,而现在大家基本都知道 strace 了,如果你遇到性能问题求助别人,十有八九会建议你用 strace 挂上去看看,不过当你挂上去了,看着满屏翻滚的字符,却十有八九看不出个所以然。本文通 阅读全文
posted @ 2020-12-27 20:58 tigergaonotes 阅读(99) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 27 下一页