摘要:
题目 代码 解释 总结 题目: 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平方 阅读全文
摘要:
题目 代码 解释 总结 题目: A/B Problem Write a program which reads two integers a and b, and calculates the following values: a ÷ b: d (in integer)//除法求整 remaind 阅读全文
摘要:
g++ -0 (自定义名字).exe (代码).cpp 阅读全文
摘要:
Git基础(Git的一些基础请点击) 1、设置用户名:git config --global user.name '用户名' 2、设置用户名邮箱:git config --global user.email '邮箱' 3、检查是否设置成功:git config --list(在当中核对信息) 3、初 阅读全文
摘要:
介绍一下git 工作区域: 阅读全文
摘要:
博主在python算法学习中遇到insert函数问题。 目录 功能 格式及其解释 结果 运用 正文 功能: Python 列表 insert() 方法将指定对象插入到列表中的指定位置。 格式及其解释: list1.insert(i,list2(b)) list1:表示被插入的列表 i表示插入到lis 阅读全文
摘要:
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... 阅读全文