摘要:
查看出每门课成绩都大于80的学生名字 阅读全文
posted @ 2019-05-20 22:17
飞虎就是我
阅读(293)
评论(0)
推荐(0)
摘要:
对与一个无序列表,先用list.sort()函数排序,之后在调用上面代码找出结果 阅读全文
posted @ 2019-05-20 22:07
飞虎就是我
阅读(192)
评论(0)
推荐(0)
摘要:
tail、cat、tac、head、echo linux 如何显示一个文件的某几行(中间几行) 从第3000行开始,显示1000行。即显示3000~3999行cat filename | tail -n +3000 | head -n 1000 显示1000行到3000行cat filename| 阅读全文
posted @ 2019-05-20 21:43
飞虎就是我
阅读(469)
评论(0)
推荐(0)
摘要:
查看某一进程是否运行:ps -ef|grep 程序名 终止程序: kill pid 阅读全文
posted @ 2019-05-20 21:33
飞虎就是我
阅读(266)
评论(0)
推荐(0)
摘要:
1 oldlist=[1,2,4,2,4,5,6,5,7,8,9,8] 2 newlist=[] 3 for i in oldlist: 4 if i not in newlist: 5 newlist.append(i) 6 print(newlist) 阅读全文
posted @ 2019-05-20 21:28
飞虎就是我
阅读(261)
评论(0)
推荐(0)
摘要:
str1='helloworld-iefuh' length=len(str1) result='' half=int(length/2) #python不支持C语言那种temp交换方式翻转字符串 for i in range(length): result+=str1[length-1-i] print(result) #方法二 l=list(str1) l.reverse() res=''... 阅读全文
posted @ 2019-05-20 21:21
飞虎就是我
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号