扩展: 1、设定变量FILE的值为/etc/passwd2、依次向/etc/passwd中的每个用户问好,并显示对方的shell,形如: Hello, root, your shell: /bin/bash3、统计一共有多少个用户提示:for I in `seq 1 $LINES`; do echo ...
分类:
其他好文 时间:
2016-08-14 20:35:57
阅读次数:
192
题意: 判断直线间位置关系: 相交,平行,重合 ...
分类:
其他好文 时间:
2016-08-09 22:01:05
阅读次数:
163
题意:给定 n 个点,每个点都可以和另一个点相连,问你共有多少种不同斜率的直线。 析:那就直接暴力好了,反正数也不大,用set判重就好,注意斜率不存在的情况。 代码如下: ...
分类:
其他好文 时间:
2016-08-09 18:39:51
阅读次数:
91
解决办法: gradlew is the gradle wrapper executable - batch script on windows and shell script elsewhere. If you include the following lines in your build. ...
分类:
移动开发 时间:
2016-08-07 16:43:52
阅读次数:
849
题意: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e ...
分类:
其他好文 时间:
2016-08-06 18:59:55
阅读次数:
192
1.获取设备描述表句柄:a. hdc = BeginPaint(hwnd,&ps); //other program lines EndPaint(hwnd,&ps); BeginPaint调用使整个客户区有效(阻止WM_PAINT消息一直发送),填充 ps结构的字段,返回的设备描述句柄。使用这个句 ...
分类:
其他好文 时间:
2016-08-05 17:46:32
阅读次数:
129
通过使用python,编写脚本批量ping主机,验证主机是否处于活动状态#!/usr/bin/python
#auther:Jacky
#date:2016-08-01
#filename:ping_ip.py
importos,sys
importsubprocess,cmd
defsubping():
f=open("ip_list.txt","r")
lines=f.readlines()
forlineinlines:
line=line.s..
分类:
编程语言 时间:
2016-08-04 11:48:57
阅读次数:
2052
题意:判直线相交、平行、重合 吐槽:坑OJ,G++WA,C++AC,模版题 /************************************************ Author :DarkTong Created Time :2016/8/3 23:02:25 File Name :Po... ...
分类:
其他好文 时间:
2016-08-04 01:13:24
阅读次数:
158