摘要: 题目 代码 解释 总结 题目: 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 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 解释 总结 题目: A/B Problem Write a program which reads two integers a and b, and calculates the following values: a ÷ b: d (in integer)//除法求整 remaind 阅读全文
posted @ 2019-07-30 16:38 Accept_program 阅读(361) 评论(0) 推荐(0) 编辑
摘要: g++ -0 (自定义名字).exe (代码).cpp 阅读全文
posted @ 2019-07-29 16:02 Accept_program 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Git基础(Git的一些基础请点击) 1、设置用户名:git config --global user.name '用户名' 2、设置用户名邮箱:git config --global user.email '邮箱' 3、检查是否设置成功:git config --list(在当中核对信息) 3、初 阅读全文
posted @ 2019-07-27 16:24 Accept_program 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 介绍一下git 工作区域: 阅读全文
posted @ 2019-07-27 11:50 Accept_program 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 博主在python算法学习中遇到insert函数问题。 目录 功能 格式及其解释 结果 运用 正文 功能: Python 列表 insert() 方法将指定对象插入到列表中的指定位置。 格式及其解释: list1.insert(i,list2(b)) list1:表示被插入的列表 i表示插入到lis 阅读全文
posted @ 2019-07-12 16:35 Accept_program 阅读(1869) 评论(0) 推荐(0) 编辑
摘要: 1 arr1 = [1,3,4,6,10] 2 arr2 = [2,5,8,11] 3 ind = 0 4 ans = arr1.copy() 5 #result[1,3,4,6,10] 6 print(ans) 7 for i in range(0,len(arr2)): 8 # range(0,4) i = 0 1 2 3 9 while ind < len... 阅读全文
posted @ 2019-07-12 16:19 Accept_program 阅读(113) 评论(0) 推荐(0) 编辑
摘要: x 是解压 v 是复杂输出 f 是指定文件 .tar 解包:tar xvf 文件名.tar 打包:tar cvf 文件名.tar 后文件名 .zip 解压:unzip 文件名.zip 压缩:zip 文件名.zip DirName .rar 解压:rar x FileName.rar 压缩:rar a 阅读全文
posted @ 2019-07-08 17:07 Accept_program 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 打开终端,输入如下代码: 回车进入: 在底部输入源地址即可。 源地址可在TsingHua源、中科大源等等找到 阅读全文
posted @ 2019-07-08 16:47 Accept_program 阅读(170) 评论(0) 推荐(0) 编辑