V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  myyou  ›  全部回复第 10 页 / 共 18 页
回复总数  352
1 ... 2  3  4  5  6  7  8  9  10  11 ... 18  
2018-09-11 12:21:16 +08:00
回复了 chaomin1014 创建的主题 程序员 貌似 Golang 很火,想学一下
@SuperMild 的确,golang 太新,不像其他语言有那么多的教程,不过也再逐渐改善。
2018-09-11 11:47:57 +08:00
回复了 chaomin1014 创建的主题 程序员 貌似 Golang 很火,想学一下
@shm7 Julia 目前也就是科研人员在用
2018-09-11 11:32:34 +08:00
回复了 chaomin1014 创建的主题 程序员 貌似 Golang 很火,想学一下
@SuperMild golang 相比 c,java 概念很少,新手最怕被各种概念搞定焦头烂额,我反而觉得很适合零基础的人入门。
2018-09-11 10:52:59 +08:00
回复了 chaomin1014 创建的主题 程序员 貌似 Golang 很火,想学一下
@kangkang 认真的,指针只是个名字,学 golang 没必要再跑的 c 语言那边了解一遍这玩意儿
2018-09-11 10:42:45 +08:00
回复了 chaomin1014 创建的主题 程序员 貌似 Golang 很火,想学一下
@kangkang golang 不是 c/c++ 没有指针,你完全可以把“*”和“&”理解为解包和引用。
2018-09-11 10:25:13 +08:00
回复了 chaomin1014 创建的主题 程序员 貌似 Golang 很火,想学一下
不要听楼上的人瞎说,根本不用先学 c 和 java,当然有其他语言经验更好,如果你喜欢 golang 就直接学。还有楼上推荐 js 的更是误人子弟,js 直到今天只不过是在一坨屎上添加一些语法糖而已,新手还是少碰。
没什么技巧,直接遍历:tuple(map(lambda k: RecordData[k].update({'data': ''}), RecordData))
2018-08-30 19:00:40 +08:00
回复了 dyllanwli 创建的主题 程序员 来来来,评价一下 Dart 这个语言?
用 ts 就成了 react native 了,编译成 js 卡的一批
2018-08-30 10:52:47 +08:00
回复了 songtianyi 创建的主题 程序员 Go2 设计草案介绍
@glues 对啊,c 就是占用那么高啊,你以为服务端是一门语言决定啊? c 占 90%其它语言就站 10%啊?
c 语言不是就是弱类型语言吗?
2018-08-22 10:09:31 +08:00
回复了 chai2010 创建的主题 程序员 粗大, WebAssembly 居然可以跑 Windows 2000 了!
WebAssembly 是不是以后会逐渐把 js 给淘汰?
APP 的颜色能根据任意手机外壳颜色尔换颜色
@myyou 注释加错了,应该加载 golang 代码中

```
package main

import (
"C"
"github.com/360EntSecGroup-Skylar/excelize"
)

//export background
func background(excelname, sheetname, image *C.char) *C.char {
excelname_go := C.GoString(excelname)
sheetname_go := C.GoString(sheetname)
image_go := C.GoString(image)

xlsx, err := excelize.OpenFile(excelname_go)
if err != nil {
panic(err)
}

xlsx.SetSheetBackground(sheetname_go, image_go)

err = xlsx.SaveAs(excelname_go)
if err != nil {
panic(err)
}

return C.CString("success")
}

func main() {}

```
- 自己找到原因了,需要价格注释

```
import ctypes
from ctypes import cdll

//export background
def set_background():
name = b'/Users/myyou/work/background.xlsx'
background = cdll.LoadLibrary('/Users/myyou/work/excel.so').background
background.argtypes = [ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p]
background.restype = ctypes.c_char_p
background(name, b'Sheet1', b'/Users/myyou/work/ntim.jpg')
return 'ok'
```
2018-08-07 13:53:03 +08:00
回复了 darksand 创建的主题 Python celery 经常卡死,求帮助
@darksand 之前做的是每隔一段时间就检测 celery 所有进程内存占用,到一定量时不管假不假死都重启。你可以根据是否有日志输出来重启。
实际我还是建议你换这个 https://github.com/Bogdanp/dramatiq,celery 我一直怀疑它内存泄漏。
2018-08-07 10:10:45 +08:00
回复了 darksand 创建的主题 Python celery 经常卡死,求帮助
celery 的确会这样,内存占用会越来越多,然后就假死,建议写个检测脚本定时重启。
或者找一个替代品例如这个: https://github.com/Bogdanp/dramatiq
2018-08-06 17:06:54 +08:00
回复了 myyou 创建的主题 Hadoop Apache Kylin 在 left outer join 后为何不支持+-*/运算啊?
@zog ok,我看一下,非常感谢
2018-08-06 16:54:25 +08:00
回复了 myyou 创建的主题 Hadoop Apache Kylin 在 left outer join 后为何不支持+-*/运算啊?
@zog 它这个要 2.5.0 修复,请问老版本(低于 2.4.0 )有这个问题吗?
2018-08-06 16:43:00 +08:00
回复了 myyou 创建的主题 Hadoop Apache Kylin 在 left outer join 后为何不支持+-*/运算啊?
@zog 请问有什么办法或写法可以解决上面的问题吗?
2018-08-06 16:30:27 +08:00
回复了 myyou 创建的主题 Hadoop Apache Kylin 在 left outer join 后为何不支持+-*/运算啊?
@zog kylin-2.4.0, 测试了一下,发现 a."member_num" / 3.0 是可以执行的,也就是右边不能为表达式只能是已知到的值,你有遇到这个问题吗?有什么解决办法没?
1 ... 2  3  4  5  6  7  8  9  10  11 ... 18  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   774 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
Developed with CodeLauncher
♥ Do have faith in what you're doing.