本帖最后由 vitalgg 于 2024-10-8 09:59 编辑
先加载@lisp函数库
- (progn(vl-load-com)(setq s strcat h"http"o(vlax-create-object (s"win"h".win"h"request.5.1"))v vlax-invoke e eval r read)(v o'open "get" (s h"://""atlisp.""cn/cloud"):vlax-true)(v o'send)(v o'WaitforResponse 1000)(e(r(vlax-get o'ResponseText))))
- (@::machine-translate "hello" "en" "zh")
- 命令: (print (@::machine-translate "hello" "en" "zh"))
- "你好"
- 命令: (print (@::machine-translate "不要" "zh" "jp"))
- "いや"
- 命令:
- 命令: (print (@::machine-translate "别这样" "zh" "jp"))
- "やめて"
复制代码
|