为您找到相关结果4,198,049个
非常实用的23个Shell脚本实例_linux shell_脚本之家
HOST=$1 PORT="22 25 80 8080" forPORTin$PORT;do ifecho&>/dev/null>/dev/tcp/$HOST/$PORT;then echo"$PORT open" else echo"$PORT close" fi done 用shell打印示例语句中字母数小于6的单词 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #示例语句: #Bash also interprets a number of multi-ch...
www.jb51.net/article/2138...htm 2024-6-1
C语言经典例程100例(经典c程序100例)_C 语言_脚本之家
1.程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊 情况,闰年且输入月份大于3时需考虑多加一天。 2.程序源代码:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 main() { int day,month,year,sum,leap; pr...
www.jb51.net/article/1370...htm 2024-6-2
Python中的bytes类型用法及实例分享_python_脚本之家
例1:string有的方法bytes大部分都有(但其字符串参数必须是bytes类型) 1 2 3 4 5 6 7 8 9 10 11 12 13 # coding:utf-8 if__name__=='__main__': b=b'abc123' print(b.find(b'a'))# 0 c='abc123' print(c.find('a'))# 0 ...
www.jb51.net/article/2391...htm 2024-6-2
TensorFlow内存管理bfc算法实例_python_脚本之家
22 23 24 25 26 27 28 29 30 31 32 33 static constintkInvalidChunkHandle=-1; ... struct Chunk { size_t size=0;//Full size ofbuffer. //We sometimes give chunks that are larger than needed toreduce //fragmentation. requested_size keeps track of what the client ...
www.jb51.net/article/1793...htm 2024-6-2
java发起http请求调用post与get接口的方法实例_java_脚本之家
//strUrl截止到?,例:http://127.0.0.1:8080/api/method? public static String httpGet(String strUrl){ Map<Object, Object> params = new HashMap<Object, Object>(); params.put("key1", "value1"); params.put("key2", "value2"); String url=strUrl + getUrlData(params); StringBuilder res...
www.jb51.net/article/2588...htm 2024-6-2