小编Sal*_*mat的帖子

如何在 Windows 中生成 ssh 密钥?

我按照在 Windows 8.1 上生成 ssh 密钥,但是如果在要求输入保存密钥的文件时按 Enter 键,则会出现错误could not create the directory '//.ssh'

现在,如果我输入“id_rsa”而不是按 Enter 键,那么在执行完之后clip < ~/.ssh/id_rsa.pub,我会得到The system cannot find the path specified

有没有办法解决?我可以切换到 ubuntu,但我想在 Windows 上执行此操作。

windows cmd github ssh-keys

5
推荐指数
2
解决办法
8720
查看次数

OpenModelica中“ when”和“ if”之间的区别?

我是OpenModelica的新手,并且对与软件一起作为示例代码分发的'BouncingBall.mo'的代码有一些疑问。

1)“何时”“如果”之间有什么区别?

2)代码中的变量“ foo”的目的是什么?

3)在第(15)行中- “当{h <= 0.0且v <= 0.0,impact}时”“ when”的表达式不应为“ {h <= 0.0且v <= 0.0}” “因为这个变得当碰撞发生时,有什么目的的影响(对我来说它的冗余这里)的,什么是逗号()之前影响的手段?

model BouncingBall
  parameter Real e = 0.7 "coefficient of restitution";
  parameter Real g = 9.81 "gravity acceleration";
  Real h(start = 1) "height of ball";
  Real v "velocity of ball";
  Boolean flying(start = true) "true, if ball is flying";
  Boolean impact;
  Real v_new;
  Integer foo; …
Run Code Online (Sandbox Code Playgroud)

modeling if-statement modelica openmodelica

3
推荐指数
1
解决办法
2059
查看次数