上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: 统计cpu和内存一个月的平均使用率: #!/bin/bash totalcpu_rate=0.0 totalmem_rate=0.0 num_days=$(ls -l /var/log/sa/sa[0-3]* | wc -l) echo $num_days for file in /var/log/ 阅读全文
posted @ 2019-11-26 14:58 东宫得臣 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: - hosts: myjob gather_facts: false tasks: - name: chage user passwd user: name={{ item.name }} password={{ item.chpass | password_hash('sha512') }} up 阅读全文
posted @ 2019-11-26 14:49 东宫得臣 阅读(441) 评论(0) 推荐(0) 编辑
摘要: { if(NR % 2 == 0) printf("%s\n", $0) else printf("%s, ", $1) } awk -f awk.awk data 阅读全文
posted @ 2019-11-26 14:41 东宫得臣 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> int main() { enum {size = 4}; std::vector<int> num(size); size_t i=0; while(std::cin>>num.at(i++)) { if(i == siz 阅读全文
posted @ 2019-11-24 13:34 东宫得臣 阅读(337) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> int main() { int num; while(std::cin>>num) { int mod, left, sum=0; left = num % 3; while(num/3) { mod = num / 3; left = num % 3; s 阅读全文
posted @ 2019-11-23 01:24 东宫得臣 阅读(1519) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <cmath> int main() { std::string hex; while(std::cin>>hex) { int sum=0, flag=0; for(std::string::const_ 阅读全文
posted @ 2019-11-23 00:08 东宫得臣 阅读(3734) 评论(2) 推荐(0) 编辑
摘要: #include <iostream> #include <set> int main() { int n; std::set<int> i_set; while(std::cin>>n) { i_set.clear(); int data_in; for(size_t i=0; i<n; ++i) 阅读全文
posted @ 2019-11-21 14:12 东宫得臣 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <algorithm> int main() { int N, M; while(std::cin>>N>>M) { std::vector<int> v_data; v_data.clear(); for 阅读全文
posted @ 2019-11-20 23:14 东宫得臣 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-11-06 16:00 东宫得臣 阅读(246) 评论(0) 推荐(0) 编辑
摘要: The central idea is to extract linear combinations of the inputs as derived features, and then model the target as a nonlinear function of these featu 阅读全文
posted @ 2019-09-16 19:09 东宫得臣 阅读(479) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页