摘要: 或者 阅读全文
posted @ 2019-01-03 20:20 anobscureretreat 阅读(638) 评论(0) 推荐(0)
摘要: rc.local脚本 rc.local脚本是一个ubuntu开机后会自动执行的脚本,我们可以在该脚本内添加命令行指令。该脚本位于/etc/路径下,需要root权限才能修改。 该脚本具体格式如下: #!/bin/sh -e # # rc.local # # This script is execute 阅读全文
posted @ 2019-01-03 20:05 anobscureretreat 阅读(474) 评论(0) 推荐(0)
摘要: data=[0,9,3,2,1,3,2,-2,-1] result=[x for x in data if x >=0 ] 阅读全文
posted @ 2019-01-03 19:46 anobscureretreat 阅读(192) 评论(0) 推荐(0)