08 2019 档案

摘要:1 #include 2 int f(int n) 3 { 4 return n == 0 ? 1 : f(n-1)*n; 5 //当n=0时返回1,否则返回f(n-1)*n 6 } 7 int main() 8 { 9 printf("%d\n", f(3)); 10 return 0; 11 } 阅读全文
posted @ 2019-08-13 09:35 Accept_program 阅读(121) 评论(0) 推荐(0)
摘要:很多linux默认python版本是2.7.5 但现在大部分操作使用的python版本是3.* 这里用最快的方法 一、打开终端键入:sudo vi ~/.bashrc 二、向其中插入: alias python='python3' 三、退出保存 四、终端输入:source ~/.bashrc 五、完 阅读全文
posted @ 2019-08-07 10:57 Accept_program 阅读(514) 评论(0) 推荐(0)
摘要:首先进行排查: 1、打开命令行键入:rfkill list all 2、这里的0 1 2 3指的是优先硬件使用顺序,可以知道在deepin在联想机身影响下是默认开启Hard blocked选项的,即关闭了硬件wifi网卡的开关。 再看2是可以正常使用的,所以我们只需要移除2之前的wifi的网卡模板就 阅读全文
posted @ 2019-08-06 19:12 Accept_program 阅读(1367) 评论(0) 推荐(0)
摘要:题目 代码 解释 总结 题目: Draw a chessboard which has a height of H cm and a width of W cm. For example, the following figure shows a chessboard which has a hei 阅读全文
posted @ 2019-08-05 11:22 Accept_program 阅读(253) 评论(0) 推荐(0)
摘要:题目 代码 解释 总结 题目: Draw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'. 画一个高度为H cm,宽度为W cm的矩形。 用单个'#'画一个1平方 阅读全文
posted @ 2019-08-03 18:39 Accept_program 阅读(379) 评论(0) 推荐(0)