- 博客(49)
- 收藏
- 关注
原创 【CSS】display常用属性
display、block、inline、inline-block、none、flex、inline-flex
2022-11-17 09:55:06 5125
原创 js中for(const i in arr/obj)和for(const i of arr/obj)的区别
for(const i in/of arr/obj)
2022-10-27 16:52:27 229
原创 git HEAD detached from origin 问题的解决
这个问题是因为分支选错了,所以说后续的提交都提交到了一个匿名分支之上,整个状态是游离了的下面说一下解决问题的步骤1.查看在游离状态下提交的最新commit号 git branch -v2.创建一个临时的分支,创建完成之后切换到该分支上查看一下 git branch temp 最新的commit号3.切换到要合并的分支智商 git checkout 要合并临时分支的分支名称4.合并分支 git merge temp5.删除临时分支 git branch -d
2022-05-28 13:44:16 453
原创 解决Git中fatal: refusing to merge unrelated histories
Git的报错今天在使用Git创建项目的时候,在两个分支合并的时候,出现了下面的这个错误。这里的问题的关键在于:fatal: refusing to merge unrelated histories你可能会在git pull或者git push中都有可能会遇到,这是因为两个分支没有取得关系。那么怎么解决呢?解决方案在你操作命令后面加–allow-unrelated-histories例如:git merge master --allow-unrelated-histories如果你是git
2022-05-28 13:25:03 1010
原创 gitee使用ssh提交代码却提示:DeployKey does not support push code fatal: Could not read from remote repository
gitee使用ssh提交代码却提示:DeployKey does not support push code fatal: Could not read from remote repository原因:部署公钥的位置错了我的仓库—管理—部署公钥管理
2022-05-28 12:18:01 458 2
原创 [Codeup]1941 问题 A: 又一版 A+B
题目描述输入两个不超过整型定义的非负10进制整数A和B(<=231-1),输出A+B的m (1 < m <10)进制数。输入输入格式:测试输入包含若干测试用例。每个测试用例占一行,给出m和A,B的值。当m为0时输入结束。输出输出格式:每个测试用例的输出占一行,输出A+B的m进制数。样例输入2 4 58 123 4560样例输出10011103AC代码...
2020-03-06 15:39:18 120
原创 [Codeup]1931 问题 C: 打印日期
题目描述给出年分m和一年中的第n天,算出第n天是几月几号。输入输入包括两个整数y(1<=y<=3000),n(1<=n<=366)。输出可能有多组测试数据,对于每组数据,按 yyyy-mm-dd的格式将输入中对应的日期打印出来。样例输入2013 602012 3002011 3502000 211样例输出2013-03-012012-10-262...
2020-03-04 13:05:57 172
原创 [Codeup]1993 问题 B: Hello World for U
题目描述Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, “helloworld” can be printed as:That is, the characters must be printed in the o...
2020-03-03 19:51:41 104
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人