小编Q.D*_*son的帖子

找不到模块:com.eed3si9n #sbt-assembly; 0.14.3

我对scala很新,我需要将我的代码汇总到火花.我已经尝试通过Eclipse将我的代码压缩到.jar但是我有很多依赖项,所以它不能正常工作.所以经过一些研究后我发现了sbt with assembly plugin.我安装了sbt(apt-get 1.0.4中的默认版本)并在我的文件夹中创建了这个组织:

- RootFolder
    -- bin
    -- project
        --- assembly.sbt
        --- build.properties 
    -- src
        --- scala
            ---- BloomFilter.scala
            ---- TestCRA.scala
    -- target
    -- buildt.sbt
Run Code Online (Sandbox Code Playgroud)

所以在我的build.sbt中:

name := "Test"

version := "1.0"

scalaVersion := "2.11.6"
Run Code Online (Sandbox Code Playgroud)

在我的assembly.sbt中:

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.2")
Run Code Online (Sandbox Code Playgroud)

在我的build.properties中:

sbt.version=1.0.4
Run Code Online (Sandbox Code Playgroud)

所以当我启动时:$ sbt assembly在我的RootProject中我得到了这个:

[warn]  module not found: com.eed3si9n#sbt-assembly;0.14.2
[warn] ==== typesafe-ivy-releases: tried
[warn]   https://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.2/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.2/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /home/quentin/.ivy2/local/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.2/ivys/ivy.xml
[warn] …
Run Code Online (Sandbox Code Playgroud)

jvm scala sbt

10
推荐指数
1
解决办法
6185
查看次数

为什么isdigit()在float上返回false?

我想检查我的值是否是带有点或逗号的浮点数,但是isdigit()返回带有点的false.我想知道为什么以及如何通过它.

> value = "0.0"
> print value.isdigit():
>>> False
Run Code Online (Sandbox Code Playgroud)

我的代码是:

if "." in value and value.isdigit()
    print "ok"
Run Code Online (Sandbox Code Playgroud)

python floating-point digit python-2.7

-4
推荐指数
1
解决办法
5672
查看次数

标签 统计

digit ×1

floating-point ×1

jvm ×1

python ×1

python-2.7 ×1

sbt ×1

scala ×1