求助:win10 64 +vs2013,最简单的"hello world"C程序编译后没有输出 4C

RT,小弟前段时间升级了WIN10,然后在用win10编程的时候就出现了一些问题……
某一次曾经在程序运行过程中,等输出等的不耐烦然后手贱把dos窗口直接关了,之后就开始出问题了
最简单的hello world 程序,没有报错,可以编译通过,但是运行后弹出的dos窗口里没有输出,连按任意键关闭的提示都没有……
图片说明
图片说明
求解救,已经卡在这个问题好几天了……

3个回答

编译没问题是因为stdafx.h这个头文件能帮助编译器生成所需的编译环境,运行的时候出错是因为这个头文件里边什么库函数都没有,解决方法,把头文件换成iostream

你可以 开始菜单---程序和功能---右键vs2013卸载程序选择修复安装。

mzq11171079
mzq11171079 试过修复,但是没有用
4 年多之前 回复

选择win32 控制台程序

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求助:win10 64 +vs2013,最简单的"hello world"C程序编译后没有输出

RT,小弟前段时间升级了WIN10,然后在用win10编程的时候就出现了一些问题…… 某一次曾经在程序运行过程中,等输出等的不耐烦然后手贱把dos窗口直接关了,之后就开始出问题了 最简单的hello world 程序,没有报错,可以编译通过,但是运行后弹出的dos窗口里没有输出,连按任意键关闭的提示都没有…… ![图片说明](https://img-ask.csdn.net/upload/201512/10/1449716497_858290.png) ![图片说明](https://img-ask.csdn.net/upload/201512/10/1449716512_115747.png) 求解救,已经卡在这个问题好几天了……

c++语法 ss << "hello world " << count 如何理解

本人小白,只知道cout用于输出,语法格式为cout << "hello world ",但是对于如下: ``` ss << "hello world " << count ``` 的如何理解,请指点一下,谢谢

指针数组处理字符串(如:char *s[] = { "Hello","World","!" };)Visual Studio 2017无法正常编译 出现错误error C2440: “初始化”: 无法从“const char [6]”转换为“char *”

``` #include<stdio.h> int main(void) { int i; char *s[] = { "Hello","World","!" }; for (i = 0; i < sizeof(s); i++) printf("%s\n", s[i]); return 0; } ``` 直接给数组指针赋值 char *s[] = { "Hello","World","!" };,这个代码是正确的,使用Visual Studio 2010时能正常运行,但是在Visual Studio 2017中却检测有错误,无法运行,请问是标准或者什么变了吗?原因是什么?怎么解决在Visual Studio 2017运行中出现的这个问题?谢谢! ![图片说明](https://img-ask.csdn.net/upload/202007/01/1593595779_750315.png)

Vue点击事件无效:Invalid handler for event "click": got undefined

描述: 定义了单击事件,但是使用Vue组件生成的标签就检测不到单击的方法,并报错:Invalid handler for event "click": got undefined 把标签放到外面可以正常使用,使用Vue组件生成后就报错,而且msg这个也找不到了 请问该如何处理?以下是全部代码 ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/vue.js"></script> </head> <body> <div id="container"> <div id="navbar_left"> <pr></pr> </div> </div> <script> Vue.component("pr",{ name:"pr", template:"<p @click='this.toggle'>{{msg}}</p>", data(){ return{ open:true } } }); var app = new Vue({ el:"#navbar_left", data:{ msg:"hello world", }, methods:{ toggle(){ this.open = !this.open } }, }); </script> </body> </html> ```

tensorflow gpu 运行时报错 “device_type: "CPU"') for unknown op”

>>> import tensorflow as tf I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cublas64_80.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cudnn64_5.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library cufft64_80.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library nvcuda.dll locally I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stream_executor\dso_loader.cc:135] successfully opened CUDA library curand64_80.dll locally >>> hello = tf.constant('Hello') >>> sess = tf.session() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'tensorflow' has no attribute 'session' >>> sess = tf.Session() I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:885] Found device 0 with properties: name: Quadro 410 major: 3 minor: 0 memoryClockRate (GHz) 0.7055 pciBusID 0000:01:00.0 Total memory: 512.00MiB Free memory: 405.36MiB I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:906] DMA: 0 I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:916] 0: Y I c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\common_runtime\gpu\gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Quadro 410, pci bus id: 0000:01:00.0) >>> print(sess.run(hello)) E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots b'Hello' >>>

将JSON成员字符串转换为JSON对象

<div class="post-text" itemprop="text"> <p>I have this struct:</p> <pre><code>type ResponseStatus struct { StatusCode int Message string Data string `json:"data"` } type Pets struct { Id int `json:"id"` Name string `json:"name"` Age int `json:"age"` Type string `json:"type"` } </code></pre> <p>and this is my json result:</p> <pre><code>{ "StatusCode": 200, "Message": "Hello framework - OK", "data": "[{\"id\":1,\"name\":\"george\",\"age\":2,\"type\":\"dog\"},{\"id\":2,\"name\":\"walter\",\"age\":1,\"type\":\"rabbit\"},{\"id\":3,\"name\":\"tom\",\"age\":1,\"type\":\"cat\"},{\"id\":4,\"name\":\"doggo\",\"age\":5,\"type\":\"dog\"},{\"id\":5,\"name\":\"torto\",\"age\":3,\"type\":\"turtle\"},{\"id\":6,\"name\":\"jerry\",\"age\":1,\"type\":\"hamster\"},{\"id\":7,\"name\":\"garf\",\"age\":2,\"type\":\"cat\"},{\"id\":8,\"name\":\"milo\",\"age\":4,\"type\":\"dog\"},{\"id\":9,\"name\":\"kimi\",\"age\":2,\"type\":\"cat\"},{\"id\":10,\"name\":\"buck\",\"age\":1,\"type\":\"rabbit\"}]" } </code></pre> <p>How can I escaped double quotes in my result data as JSON like this:</p> <pre><code>{ "StatusCode": 200, "Message": "Hello framework - OK", "data": [ {"id": 1,"name": "george","age": 2,"type": "dog"}, {"id": 2,"name": "walter","age": 1,"type": "rabbit"}, {"id": 3,"name": "tom","age": 1,"type": "cat"}, {"id": 4,"name": "doggo","age": 5,"type": "dog"}, {"id": 5,"name": "torto","age": 3,"type": "turtle"}, {"id": 6,"name": "jerry","age": 1,"type": "hamster"}, {"id": 7,"name": "garf","age": 2,"type": "cat"}, {"id": 8,"name": "milo","age": 4,"type": "dog"}, {"id": 9,"name": "kimi","age": 2,"type": "cat"}, {"id": 10,"name": "buck","age": 1,"type": "rabbit"} ] } </code></pre> </div>

String a = "hello2"; final String b = "hello"; 两者有什么区别呢?

String a = "hello2"; final String b = "hello"; 两者有什么区别呢? 代码1 ```String a = "hello2"; final String b = "hello"; String c = b + 2; System.out.println((a == c)); ``代码2 ```public class Main { public static void main(String[] args) { String a = "hello2"; final String b = getHello(); String c = b + 2; System.out.println((a == c)); } public static String getHello() { return "hello"; } } ````代码1和代码2的内存是怎么样运行的呢?

VSCode 无法编译 "1.1 Hello World.cpp"这样的文件,请问该怎么解决?

``` // 3.2 hello world.cpp #include<iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } ``` 以上代码在VSCode环境下无法编译, 报错如下: ``` g++: error: 1.1: No such file or directory g++: error: Hello: No such file or directory g++: error: World.cpp: No such file or directory g++: error: Hello: No such file or directory g++: error: World: No such file or directory g++: fatal error: no input files ``` 请问该如何解决?

Logstash创建索引运行时出错

``` E:\tools\logstash-6.2.1\bin>.\logstash.bat -f ..\config\mysql.conf Sending Logstash's logs to E:/tools/logstash-6.2.1/logs which is now configured via log4j2.properties [2020-07-08T13:32:37,590][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"E:/tools/logstash-6.2.1/modules/fb_apache/configuration"} [2020-07-08T13:32:37,632][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"E:/tools/logstash-6.2.1/modules/netflow/configuration"} [2020-07-08T13:32:37,951][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified [2020-07-08T13:32:38,757][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.2.1"} [2020-07-08T13:32:39,297][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600} [2020-07-08T13:32:43,208][WARN ][logstash.outputs.elasticsearch] You are using a deprecated config setting "document_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"document_type", :plugin=><LogStash::Outputs::ElasticSearch hosts=>[//localhost:9200], index=>"xc_course", document_id=>"%{id}", document_type=>"doc", template=>"E:/tools/logstash-6.2.1/config/xc_course_template.json", template_name=>"xc_course", template_overwrite=>true, id=>"2b68346a2dcba059c266e8c43513e231b8ef88495ce709831a3a93c755e8fc39", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_bc8f56e0-9abf-44af-bb83-bfa9d6cc1c20", enable_metric=>true, charset=>"UTF-8">, workers=>1, manage_template=>true, doc_as_upsert=>false, script_type=>"inline", script_lang=>"painless", script_var_name=>"event", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>"index", ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false>} [2020-07-08T13:32:43,404][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50} [2020-07-08T13:32:44,134][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://localhost:9200/]}} [2020-07-08T13:32:44,148][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"} [2020-07-08T13:32:44,416][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"} [2020-07-08T13:32:44,504][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>nil} [2020-07-08T13:32:44,514][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document _type {:es_version=>6} [2020-07-08T13:32:44,539][INFO ][logstash.outputs.elasticsearch] Using mapping template from {:path=>"E:/tools/logstash-6.2.1/config/xc_course_template.json"} [2020-07-08T13:32:44,565][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"mappings"=>{"course"=>{"_source"=>{"excludes"=>["teachplan", "description", "content"]}, "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"fields"=>{"keyword"=>{"ignore_above"=>256, "type"=>"keyword"}}, "type"=>"text"}, "charge"=>{"type"=>"keyword"}, "content"=>{"analyzer"=>"ik_max_word", "search_analyzer"=>"ik_max_word", "store"=>false, "type"=>"text"}, "description"=>{"copy_to"=>["content"], "store"=>false, "type"=>"text"}, "teachplan"=>{"copy_to"=>["content"], "store"=>false, "type"=>"text"}, "grade"=>{"type"=>"keyword"}, "id"=>{"type"=>"keyword"}, "mt"=>{"type"=>"keyword"}, "name"=>{"copy_to"=>["content"], "type"=>"text"}, "pic"=>{"index"=>false, "type"=>"keyword"}, "price"=>{"type"=>"double"}, "st"=>{"type"=>"keyword"}, "status"=>{"type"=>"keyword"}, "studymodel"=>{"type"=>"keyword"}, "timestamp"=>{"type"=>"date"}, "valid"=>{"type"=>"keyword"}}}}, "order"=>0, "settings"=>{"number_of_shards"=>3}, "template"=>"xc_course"}} [2020-07-08T13:32:44,646][INFO ][logstash.outputs.elasticsearch] Installing elasticsearch template to _template/xc_course [2020-07-08T13:32:44,784][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]} [2020-07-08T13:32:45,178][INFO ][logstash.pipeline ] Pipeline started succesfully {:pipeline_id=>"main", :thread=>"#<Thread:0x38b84248 sleep>"} The stdin plugin is now waiting for input: [2020-07-08T13:32:45,323][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]} [2020-07-08T13:33:01,897][INFO ][logstash.inputs.jdbc ] (0.006000s) SELECT version() [2020-07-08T13:33:02,089][INFO ][logstash.inputs.jdbc ] (0.001000s) SELECT version() [2020-07-08T13:33:02,155][INFO ][logstash.inputs.jdbc ] (0.006000s) SELECT count(*) AS `count` FROM (select * from course_pub where timestamp > date_add('2017-07-08 05:29:00',INTERVAL 8 HOUR)) AS `t1` LIMIT 1 [2020-07-08T13:33:02,203][INFO ][logstash.inputs.jdbc ] (0.006000s) SELECT * FROM (select * from course_pub where timestamp > date_add('2017-07-08 05:29:00',INTERVAL 8 HOUR)) AS `t1` LIMIT 50000 OFFSET 0 [2020-07-08T13:33:02,597][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"297e7c7c62b8aa9d0162b8ab13910000", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x681f08e9>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"297e7c7c62b8aa9d0162b8ab13910000", "status"=>400, **"error"=>{"type"=>"mapper_parsing_exception"**, "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-26 17:10:55\" is malformed at \"-04-26 17:10:55\""}}}}} [2020-07-08T13:33:02,616][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"402885816243d2dd016243f24c030002", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x5655a311>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"402885816243d2dd016243f24c030002", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-25 19:11:35\" is malformed at \"-04-25 19:11:35\""}}}}} [2020-07-08T13:33:02,670][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"297e7c7c62b888f00162b8a965510001", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x4e8d33f5>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"297e7c7c62b888f00162b8a965510001", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-25 19:11:35\" is malformed at \"-04-25 19:11:35\""}}}}} [2020-07-08T13:33:02,702][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"297e7c7c62b888f00162b8a7dec20000", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x11804920>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"297e7c7c62b888f00162b8a7dec20000", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-26 16:57:23\" is malformed at \"-04-26 16:57:23\""}}}}} [2020-07-08T13:33:02,705][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"4028e58161bd3b380161bd3bcd2f0000", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x541c5cfe>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"4028e58161bd3b380161bd3bcd2f0000", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-25 19:11:35\" is malformed at \"-04-25 19:11:35\""}}}}} [2020-07-08T13:33:02,708][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"4028858162e0bc0a0162e0bfdf1a0000", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x3f8ef0d8>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"4028858162e0bc0a0162e0bfdf1a0000", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-25 19:11:35\" is malformed at \"-04-25 19:11:35\""}}}}} [2020-07-08T13:33:02,712][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"4028e581617f945f01617f9dabc40000", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x4a73cbdd>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"4028e581617f945f01617f9dabc40000", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2020-07-08 12:24:00\" is malformed at \"-07-08 12:24:00\""}}}}} [2020-07-08T13:33:02,715][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"4028e58161bcf7f40161bcf8b77c0000", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x1154dfcb>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"4028e58161bcf7f40161bcf8b77c0000", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-25 19:11:35\" is malformed at \"-04-25 19:11:35\""}}}}} [2020-07-08T13:33:02,717][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"4028e58161bd22e60161bd23672a0001", :_index=>"xc_course", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x22cc7901>], :response=>{"index"=>{"_index"=>"xc_course", "_type"=>"doc", "_id"=>"4028e58161bd22e60161bd23672a0001", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [pub_time]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"2018-04-25 19:11:35\" is malformed at \"-04-25 19:11:35\""}}}}} {"grade":"200001","charge":"203001","description":"java基础3java基础3java基础3java基础3java基础3java基础3","users":"java基础3","name":"java基础3","pic":"group1/M00/00/00/wKhlQFrZS2aACA0LAAAxkpcK7CQ874.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":null,"teachmode":null,"expires":null,"end_time":null,"timestamp":"2018-04-27T14:57:24.000Z","pub_time":"2018-04-26 17:10:55","price":null,"@timestamp":"2020-07-08T05:33:02.278Z","teachplan":"","id":"297e7c7c62b8aa9d0162b8ab13910000","mt":"1-3","valid":"204001","st":"1-3-2","price_old":null} {"grade":"200001","charge":"203002","description":"111111大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大 数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据大数据","users":"具有一定的java基础","name":"大数据","pic":"group1/M00/00/02/wKhlQFrQfNqAL0d_AALDG1Ia4xE439.png","@version":"1","start_time":null,"studymodel":"201001","qq":null,"teachmode":null,"expires":null,"end_time":null,"timestamp":"2018-05-26T08:49:33.000Z","pub_time":"2018-04-25 19:11:35","price":99.0,"@timestamp":"2020-07-08T05:33:02.279Z","teachplan":"第一节 ","id":"402885816243d2dd016243f24c030002","mt":"1-6","valid":"204001","st":"1-6-1","price_old":199.0} {"grade":"200002","charge":"203002","description":"test_java基础33test_java基础33test_java基础33","users":"java爱好者d","name":"test_java基础33","pic":"group1/M00/00/02/wKhlQFrQfNqAL0d_AALDG1Ia4xE439.png","@version":"1","start_time":null,"studymodel":"201002","qq":"32432","teachmode":null,"expires":null,"end_time":null,"timestamp":"2018-04-27T14:57:24.000Z","pub_time":"2018-04-26 16:57:23","price":55.0,"@timestamp":"2020-07-08T05:33:02.252Z","teachplan":"","id":"297e7c7c62b888f00162b8a7dec20000","mt":"1-3","valid":"204002","st":"1-3-3","price_old":null} {"grade":"200002","charge":"203002","description":"redis在当前的大型网站和500强企业中,已被广泛应用。 redis是基于内存的key-value数据库,比传统的关系型数据库在性能方面有非常大的优势。 肖老师这套视频,精选了redis在实际项目中的十几个应用场景。通过本课程的学习,可以让学员快速掌握redis在实际项目中如何应用。 作为架构师,redis是必须要掌握的技能!","users":"","name":"Redis从入门到项目实战","pic":"group1/M00/00/01/wKhlQFqO5yqAQMozAAAqor3lyz0082.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":"32432432","teachmode":null,"expires":null,"end_time":null,"timestamp":"2018-05-16T10:55:36.000Z","pub_time":"2018-04-25 19:11:35","price":0.009999999776482582,"@timestamp":"2020-07-08T05:33:02.295Z","teachplan":"第一章:redis简介 第一节 NoSQL简介 第二节 认识Redis 第二章:redis的安装与配置 第三章:Redis数据操作 第四章:Redis进阶操作 第五章:Redis主从配置 ","id":"4028e58161bd3b380161bd3bcd2f0000","mt":"1-3","valid":"204001","st":"1-3-2","price_old":null} {"grade":"200001","charge":"203001","description":"test_java基础2test_java基础2test_java基础2test_java基础2test_java基础2test_java基础2test_java基础2test_java基础2test_java基础2test_java基础2","users":"test_java基础","name":"test_java基础","pic":"group1/M00/00/00/wKhlQFrZS2aACA0LAAAxkpcK7CQ874.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":"443242","teachmode":null,"expires":null,"end_time":null,"timestamp":"2018-04-27T14:57:24.000Z","pub_time":"2018-04-25 19:11:35","price":null,"@timestamp":"2020-07-08T05:33:02.277Z","teachplan":"java基础语法 ","id":"297e7c7c62b888f00162b8a965510001","mt":"1-3","valid":"204001","st":"1-3-2","price_old":null} {"grade":"200002","charge":"203002","description":"人工智能+python非常不错!!!","users":"小白","name":"人工智能+python","pic":"group1/M00/00/00/wKhlQFrZS2aACA0LAAAxkpcK7CQ874.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":"45323453","teachmode":null,"expires":null,"end_time":null,"timestamp":"2018-04-27T14:57:24.000Z","pub_time":"2018-04-25 19:11:35","price":198.0,"@timestamp":"2020-07-08T05:33:02.280Z","teachplan":"","id":"4028858162e0bc0a0162e0bfdf1a0000","mt":"1-6","valid":"204002","st":"1-6-5","price_old":null} {"grade":"200002","charge":"203002","description":"Bootstrap是由Twitter推出的一个前台页面开发框架,在行业之中使用较为广 泛。此开发框架包含了大量的CSS、JS程序代码,可以帮助开发者(尤其是不擅长页面开发的程序人员)轻松的实现一个不受浏览器限制 的精美界面效果。","users":"所有人","name":"Bootstrap开发框架","pic":"group1/M00/00/01/wKhlQFqO0OGAFyhGAAA-8SWa8Qc537.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":"4455432","teachmode":null,"expires":null,"end_time":null,"timestamp":"2020-07-08T04:24:00.000Z","pub_time":"2020-07-08 12:24:00","price":0.009999999776482582,"@timestamp":"2020-07-08T05:33:02.281Z","teachplan":"{\"children\":[{\"children\":[{\"id\":\"40286b8173082f1b017308407a840002\",\"pname\":\"案例1\"}],\"id\":\"40286b8173082f1b0173083ff48e0001\",\"pname\":\"案例开发\"},{\"children\":[{\"id\":\"3\",\"pname\":\"计算机硬件\"},{\"id\":\"4\",\"pname\":\"计算机软件\"},{\"id\":\"40286b8173082f1b0173083e88fa0000\",\"pname\":\"测试\"}],\"id\":\"2\",\"pname\":\"计算机原理\"},{\"children\":[{\"id\":\"6\",\"pname\":\"java语法介绍\"},{\"id\":\"7\",\"pname\":\"Hello World\"}],\"id\":\"5\",\"pname\":\"计算机编程入门\"},{\"children\":[{\"id\":\"402885816347f814016348d68bad0000\",\"pname\":\"数据库基础知识\"},{\"id\":\"402885816347f814016348d6c5920001\",\"pname\":\"SQL查询\"},{\"id\":\"402885816347f814016348d7153c0002\",\"pname\":\"SQL优化\"}],\"id\":\"4028e581617ce7b601617ce801790000\",\"pname\":\"数据库编程\"},{\"children\":[{\"id\":\"4028e58161bbcd350161bbcefe3d0001\",\"pname\":\"操作系统原理\"},{\"id\":\"4028e581617d02e101617d070ed90000\",\"pname\":\"操作系统类型介绍\"}],\"id\":\"8\",\"pname\":\"操作系统原理\"}],\"id\":\"1\",\"pname\":\"Bootstrap开发框架\"}","id":"4028e581617f945f01617f9dabc40000","mt":"1-1","valid":"204001","st":"1-1-1","price_old":null} {"grade":"200003","charge":"203002","description":"本课程主要从四个章节进行讲解: 1.微服务架构入门 2.spring cloud 基础入门 3.实战Spring Boot 4.注册中心eureka。","users":"所有人","name":"spring cloud实战","pic":"group1/M00/00/01/wKhlQFqO2HqAA6sPAAArlhJed-w088.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":"54354353","teachmode":"","expires":null,"end_time":null,"timestamp":"2018-04-27T14:57:24.000Z","pub_time":"2018-04-25 19:11:35","price":0.009999999776482582,"@timestamp":"2020-07-08T05:33:02.282Z","teachplan":"微服务架构入门 为什么要使用微服务:单体架构的特点 为什么要使用微服务:微服务的优缺点 spring cloud 基础入门 为什么要选择spring cloud? 为什么springcloud要设计一套新的版本升级规则? 实战-Spring Boot 为什么越来越多的开发者选择使用spring boot?它解决了什么问题? spring boot的入门例子 注册中心Eureka 微服务架构为什么需要注册中心,它解决了什么问题? 一个Eureka注册中心的入门例子 ","id":"4028e58161bcf7f40161bcf8b77c0000","mt":"1-3","valid":"204002","st":"1-3-2","price_old":null} {"grade":"200002","charge":"203002","description":"Vue系列课程:从Vue1.0讲到Vue2.0,从理论讲到实战,理论与案例巧妙结合,让课程更容易理解!","users":"所有人","name":"Javascript之VueJS","pic":"group1/M00/00/01/wKhlQFqO4MmAOP53AAAcwDwm6SU490.jpg","@version":"1","start_time":null,"studymodel":"201001","qq":"4324322","teachmode":"","expires":null,"end_time":null,"timestamp":"2018-04-27T08:57:24.000Z","pub_time":"2018-04-25 19:11:35","price":0.009999999776482582,"@timestamp":"2020-07-08T05:33:02.284Z","teachplan":"Vuejs 第一讲 第一节 vue基础、常用指令、bootstrap+vue的简易留言 第二节 属性和事件、模板、交互、案例 Vuejs 第二讲 第一节 计算属性的使用、vue实例的简单方法、提高循环的性能,让重复数据显示出来 第二节 自定义过滤器、自定义指令 、自定义键盘事件、数据的监听 Vuejs 第三讲 ","id":"4028e58161bd22e60161bd23672a0001","mt":"1-1","valid":"204001","st":"1-1-9","price_old":null} [2020-07-08T13:34:00,318][INFO ][logstash.inputs.jdbc ] (0.001000s) SELECT version() [2020-07-08T13:34:00,338][INFO ][logstash.inputs.jdbc ] (0.000000s) SELECT version() [2020-07-08T13:34:00,351][INFO ][logstash.inputs.jdbc ] (0.008000s) SELECT count(*) AS `count` FROM (select * from course_pub where timestamp > date_add('2020-07-08 05:33:01',INTERVAL 8 HOUR)) AS `t1` LIMIT 1 [2020-07-08T13:34:19,454][WARN ][logstash.runner ] SIGINT received. Shutting down. [2020-07-08T13:34:20,707][INFO ][logstash.pipeline ] Pipeline has terminated {:pipeline_id=>"main", :thread=>"#<Thread:0x38b84248 run>"} 终止批处理操作吗(Y/N)? y ``` "error"=>{"type"=>"mapper_parsing_exception" 才开始用,不知道怎么回事。

MongoDB - 帮我创建一个PHP查询

<div class="post-text" itemprop="text"> <p>I have the following db entry:</p> <pre><code>{ "_id": ObjectId("4d2339f9772c4bae5403dd47"), "uname": "Eamorr", "posts": { "0": { "comment": "asdf", "fromUname": "Anonymous", "time": 1294154233, "UTC": "2011-01-04T15: 17: 13+00: 00", "ip": "134.226.1.229", "id": "974vi95ljn5aa22ykd21" }, "1": { "comment": "wddddd", "fromUname": "Anonymous", "time": 1294154360, "UTC": "2011-01-04T15: 19: 20+00: 00", "ip": "134.226.1.229", "id": "519fy1sj6f8mc4ws8v1y" }, "2": { "comment": "asdf2", "fromUname": "Anonymous", "time": 1294162680, "UTC": "2011-01-04T17: 38: 00+00: 00", "ip": "86.40.63.120", "id": "ho27be183q3kqxi2w618" }, "3": { "comment": "asdf3", "fromUname": "Anonymous", "time": 1294162759, "UTC": "2011-01-04T17: 39: 19+00: 00", "ip": "86.44.19.49", "id": "bib1184hb8e90f67zhac" }, "4": { "comment": "Eamonn", "fromUname": "Anonymous", "time": 1294162884, "UTC": "2011-01-04T17: 41: 24+00: 00", "ip": "86.44.19.49", "id": "rbq18o0r73mdfc8a023n" }, "5": { "comment": "Eamonn2", "fromUname": "Anonymous", "time": 1294162967, "UTC": "2011-01-04T17: 42: 47+00: 00", "ip": "86.44.19.49", "id": "p1210t688d0g5c0t97jx" }, "6": { "comment": "asdf", "fromUname": "Anonymous", "time": 1294235472, "UTC": "2011-01-05T13: 51: 12+00: 00", "ip": "134.226.1.229", "id": "y128u1m57bw1n711gr8o" }, "7": { "comment": "asdf", "fromUname": "Anonymous", "time": 1294235557, "UTC": "2011-01-05T13: 52: 37+00: 00", "ip": "134.226.1.229", "id": "5g1xc51mm057p39c5l1p" }, "8": { "comment": "asdf", "fromUname": "Anonymous", "time": 1294235617, "UTC": "2011-01-05T13: 53: 37+00: 00", "ip": "134.226.1.229", "id": "m35g1ug0220g82lq8z31" }, "9": { "comment": "asdf", "fromUname": "Anonymous", "time": 1294240505, "UTC": "2011-01-05T15: 15: 05+00: 00", "ip": "134.226.1.229", "id": "i9ngh02d8ifg464088x2" }, "10": { "comment": "boards.ie", "fromUname": "Anonymous", "time": 1294240542, "UTC": "2011-01-05T15: 15: 42+00: 00", "ip": "134.226.1.229", "id": "vcu1ks7ev1swaeu6z2r4" }, "11": { "comment": "Hello", "fromUname": "Eamorr", "time": 1295618860, "UTC": "2011-01-21T14: 07: 40+00: 00", "ip": "134.226.252.160", "id": "00kk05gp258clzk15mxs" }, "12": { "comment": "asdf", "fromUname": "Eamorr", "time": 1295624407, "UTC": "2011-01-21T15: 40: 07+00: 00", "ip": "212.129.64.223", "id": "6knwupaws7641a7fvsq2" }, "13": { "comment": "asdf", "fromUname": "Eamorr", "time": 1295624465, "UTC": "2011-01-21T15: 41: 05+00: 00", "ip": "212.129.64.223", "id": "rl4k3i710xkwr5njq36l" }, "14": { "comment": "Hi", "fromUname": "Eamorr", "time": 1295635332, "UTC": "2011-01-21T18: 42: 12+00: 00", "ip": "212.129.64.223", "id": "w2q11m6kaqdw9p8k44v4" }, "15": { "comment": "Hello!!!", "fromUname": "Eamorr2", "time": 1296082365, "UTC": "2011-01-26T22: 52: 45+00: 00", "ip": "86.44.21.90", "id": "001cwy768eik620rka91" }, "16": { "comment": "Hello", "fromUname": "Eamorr", "time": 1296280251, "UTC": "2011-01-29T05: 50: 51+00: 00", "ip": "86.44.20.113", "id": "0wfe8r9490lf5r1s11kv" }, "17": { "comment": "Hello", "fromUname": "Eamorr", "time": 1298632583, "UTC": "2011-02-25T11: 16: 23+00: 00", "ip": "86.44.49.74", "id": "71k5cn8zrmsudy77513g" }, "18": { "comment": "just wanted to say hi", "fromUname": "Anonymous", "time": 1299175499, "UTC": "2011-03-03T18: 04: 59+00: 00", "ip": "71.235.146.42", "id": "u2ejx9d812vk6147me6m" }, "19": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299238987, "UTC": "2011-03-04T11: 43: 07+00: 00", "ip": "212.129.64.223", "id": "ibl84549kz220va052qm" }, "20": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239150, "UTC": "2011-03-04T11: 45: 50+00: 00", "ip": "212.129.64.223", "id": "503hl41wmb73756h1oe0" }, "21": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239230, "UTC": "2011-03-04T11: 47: 10+00: 00", "ip": "212.129.64.223", "id": "8894rpqow2i38b777cky" }, "22": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239341, "UTC": "2011-03-04T11: 49: 01+00: 00", "ip": "212.129.64.223", "id": "37885igze3q81wcf8ko7" }, "23": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239409, "UTC": "2011-03-04T11: 50: 09+00: 00", "ip": "212.129.64.223", "id": "3p2095098p96315u7632" }, "24": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239561, "UTC": "2011-03-04T11: 52: 41+00: 00", "ip": "212.129.64.223", "id": "j8d79nwb65u4cl8808l8" }, "25": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239727, "UTC": "2011-03-04T11: 55: 27+00: 00", "ip": "212.129.64.223", "id": "202ts1046jkuysd78509" }, "26": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239793, "UTC": "2011-03-04T11: 56: 33+00: 00", "ip": "212.129.64.223", "id": "6ye47y3tr9syt20k5kgp" }, "27": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299239830, "UTC": "2011-03-04T11: 57: 10+00: 00", "ip": "212.129.64.223", "id": "55g039yzp4013bk4aqtr" }, "28": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299240076, "UTC": "2011-03-04T12: 01: 16+00: 00", "ip": "212.129.64.223", "id": "8w7sy170dku4y9o06d1g" }, "29": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299240113, "UTC": "2011-03-04T12: 01: 53+00: 00", "ip": "212.129.64.223", "id": "1noki588r7796v5mti2f" }, "30": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299240152, "UTC": "2011-03-04T12: 02: 32+00: 00", "ip": "212.129.64.223", "id": "l175d3aew064feaw9126" }, "31": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299240245, "UTC": "2011-03-04T12: 04: 05+00: 00", "ip": "212.129.64.223", "id": "5rpz421351p7qrv5o7rk" }, "32": { "comment": "Hello2", "fromUname": "Anonymous", "time": 1299240280, "UTC": "2011-03-04T12: 04: 40+00: 00", "ip": "212.129.64.223", "id": "n031287n17eo14v9tuda" }, "33": { "comment": "Hello", "fromUname": "Anonymous", "time": 1299240365, "UTC": "2011-03-04T12: 06: 05+00: 00", "ip": "212.129.64.223", "id": "609773uq8rsv5vuw4s0k" }, "34": { "comment": "Hello2", "fromUname": "Anonymous", "time": 1299240406, "UTC": "2011-03-04T12: 06: 46+00: 00", "ip": "212.129.64.223", "id": "57w4v64ekl76np304d9k" }, "35": { "comment": "Hello3", "fromUname": "Anonymous", "time": 1299240441, "UTC": "2011-03-04T12: 07: 21+00: 00", "ip": "212.129.64.223", "id": "7v6agdd2xdgm2zyya5pb" }, "36": { "comment": "Hello", "fromUname": "Eamorr", "time": 1299241138, "UTC": "2011-03-04T12: 18: 58+00: 00", "ip": "212.129.64.223", "id": "1qp2a2837x31791xxg0s" }, "37": { "comment": "asdf", "fromUname": "Eamorr", "time": 1299241395, "UTC": "2011-03-04T12: 23: 15+00: 00", "ip": "212.129.64.223", "id": "x7app929kw9l4p1bk977" }, "38": { "comment": "lkjh", "fromUname": "Anonymous", "time": 1299241477, "UTC": "2011-03-04T12: 24: 37+00: 00", "ip": "212.129.64.223", "id": "ea9ws389971pmt6waee8" }, "39": { "comment": "Hello", "fromUname": "Eamorr", "time": 1299244791, "UTC": "2011-03-04T13: 19: 51+00: 00", "ip": "212.129.64.223", "id": "bfk9tm2gt6z254739z08" }, "40": { "comment": "asdf", "fromUname": "Anonymous", "time": 1299249252, "UTC": "2011-03-04T14: 34: 12+00: 00", "ip": "212.129.64.223", "id": "ufaf48c1qd1e0n07s8m5" }, "41": { "comment": "asdf", "fromUname": "Anonymous", "time": 1299250483, "UTC": "2011-03-04T14: 54: 43+00: 00", "ip": "212.129.64.223", "id": "3k65kne9h0pk410xzc0p" }, "42": { "comment": "asdf", "fromUname": "Anonymous", "time": 1299251270, "UTC": "2011-03-04T15: 07: 50+00: 00", "ip": "212.129.64.223", "id": "t7740r0fcby6gowlw9xk" }, "43": { "comment": "Hi, how's it going?", "fromUname": "Eamorr", "time": 1299683127, "UTC": "2011-03-09T15: 05: 27+00: 00", "ip": "212.129.64.223", "id": "9l864xc2agxsdjo4257y" }, "44": { "comment": "3hvdn", "fromUname": "Anonymous", "time": 1299683730, "UTC": "2011-03-09T15: 15: 30+00: 00", "ip": "212.129.64.223", "id": "4frfsf12xwz1to9po0w3" }, "45": { "comment": "Hi there", "fromUname": "Anonymous", "time": 1299684889, "UTC": "2011-03-09T15: 34: 49+00: 00", "ip": "212.129.64.223", "id": "hw4i9mk906n1qvg63o2d" }, "46": { "comment": "asdf", "fromUname": "Anonymous", "time": 1313371240, "UTC": "2011-08-15T02: 20: 40+01: 00", "ip": "212.129.66.130", "id": "0f4o199394hzqyv6by89" }, "47": { "comment": "asdf", "fromUname": "Anonymous", "time": 1313430246, "UTC": "2011-08-15T18: 44: 06+01: 00", "ip": "212.129.66.131", "id": "73xbuqwauhls17cb3dc3" }, "48": { "comment": "vvvvvvvv", "fromUname": "Anonymous", "time": 1313430944, "UTC": "2011-08-15T18: 55: 44+01: 00", "ip": "212.129.66.131", "id": "44dw9427805j93g51u2h" }, "49": { "comment": "vvvvvvvv", "fromUname": "Anonymous", "time": 1313431402, "UTC": "2011-08-15T19: 03: 22+01: 00", "ip": "212.129.66.131", "id": "lo1n5i2qpxa562o606hd" }, "50": { "comment": "vvvvvvvv", "fromUname": "Anonymous", "time": 1313431865, "UTC": "2011-08-15T19: 11: 05+01: 00", "ip": "212.129.66.131", "id": "fu01r3z2vk12ar0avk65" }, "51": { "comment": "xxxxccccc", "fromUname": "Anonymous", "time": 1313432538, "UTC": "2011-08-15T19: 22: 18+01: 00", "ip": "212.129.66.131", "id": "1fk5u60nkok8hyuzd0e6" }, "52": { "comment": "xxxxccccc", "fromUname": "Anonymous", "time": 1313432587, "UTC": "2011-08-15T19: 23: 07+01: 00", "ip": "212.129.66.131", "id": "x20adl504ur7652r7x7b" }, "53": { "comment": "'cccccccccccvvvvv", "fromUname": "Anonymous", "time": 1313432791, "UTC": "2011-08-15T19: 26: 31+01: 00", "ip": "212.129.66.131", "id": "nwk0m8lq7cc3s9748cve" }, "54": { "comment": "aaaassss", "fromUname": "Anonymous", "time": 1313432849, "UTC": "2011-08-15T19: 27: 29+01: 00", "ip": "212.129.66.131", "id": "99fj5rl2ne7hzr78c691" }, "55": { "comment": "asdffffffff", "fromUname": "Anonymous", "time": 1313477562, "UTC": "2011-08-16T07: 52: 42+01: 00", "ip": "212.129.66.131", "id": "y81iemo7t501dlwo3e52" }, "56": { "comment": "Charlie", "fromUname": "Anonymous", "time": 1313525636, "UTC": "2011-08-16T21: 13: 56+01: 00", "ip": "212.129.66.130", "id": "k6bi9czy2g1941c7cid5" }, "57": { "comment": "asdf", "fromUname": "Anonymous", "time": 1314036401, "UTC": "2011-08-22T19: 06: 41+01: 00", "ip": "212.129.66.131", "id": "zs4v1f7sr82f106p42gr" }, "58": { "comment": "asdf2", "fromUname": "Anonymous", "time": 1314036666, "UTC": "2011-08-22T19: 11: 06+01: 00", "ip": "212.129.66.131", "id": "jg3y5xwilljq6hi7mpwd" }, "59": { "comment": "qwerty", "fromUname": "Eamorr", "time": 1314550970, "UTC": "2011-08-28T18: 02: 50+01: 00", "ip": "212.129.66.131", "id": "uvoh7abs5u2kfogb28kr" }, "60": { "comment": "qwerty", "fromUname": "Eamorr", "time": 1314551143, "UTC": "2011-08-28T18: 05: 43+01: 00", "ip": "212.129.66.131", "id": "u6eqi91y539mgv2ufxfw" }, "61": { "comment": "qwerty2", "fromUname": "Eamorr", "time": 1314551158, "UTC": "2011-08-28T18: 05: 58+01: 00", "ip": "212.129.66.130", "id": "1dxz445s16qi17020y26" }, "62": { "comment": "jacks", "fromUname": "Eamorr", "time": 1314633471, "UTC": "2011-08-29T16: 57: 51+01: 00", "ip": "212.129.66.131", "id": "3nkq2cxq2okb205z9ao6" } } } </code></pre> <p>I'm trying to remove an entry according to 'id'.</p> <p>So, given id "3nkq2cxq2okb205z9ao6" (which happens to be the last entry, #62), how can I update this mongo collection to remove element 62?</p> <p>I'm really stuck. I saw similar stackoverflow questions, but I really need something specific to this problem.</p> <p>Any insight greatly appreciated.</p> <p>Many thanks in advance,</p> </div>

Go-micro kubernetes greeter示例-无法访问greeter API服务

<div class="post-text" itemprop="text"> <p>I'm trying to get this go-micro greeter example working on Kubernetes <a href="https://github.com/micro/examples/tree/master/greeter" rel="nofollow noreferrer">https://github.com/micro/examples/tree/master/greeter</a></p> <p>I can run this locally in docker fine. However when I attempt to access the greeter api service via Kubernetes (http://{{external-ip}}/greeter/say/hello), I get the error: {"id":"go.micro.api","code":500,"detail":"not found","status":"Internal Server Error"}</p> <p>For the sake of troubleshooting I've simplified the scenario, I simply want to be able to make a call via the micro api to a go-micro api service. Below is my setup:</p> <p>api.go</p> <pre><code>package main import ( "github.com/micro/go-micro" api "github.com/micro/micro/api/proto" "log" k8s "github.com/micro/kubernetes/go/micro" "context" ) type Say struct { } //I just want to access this via the micro api on k8s via services external ip func (s *Say) Hello(ctx context.Context, req *api.Request, rsp *api.Response) error { rsp.StatusCode = 200 rsp.Body = "Hello" return nil } func main() { service := k8s.NewService( micro.Name("default.greeter-api"), ) service.Init() service.Server().Handle( service.Server().NewHandler( &amp;Say{}, ), ) if err := service.Run(); err != nil { log.Fatal(err) } } </code></pre> <p>micro-api-deployment.yml</p> <pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: micro spec: replicas: 1 selector: matchLabels: app: micro template: metadata: labels: app: micro spec: containers: - name: micro image: microhq/micro:kubernetes args: - "api" - "--handler=rpc" - "--namespace=default" env: - name: MICRO_API_ADDRESS value: ":80" ports: - containerPort: 80 name: api-port </code></pre> <p>micro-api-svc.yml</p> <pre><code>apiVersion: v1 kind: Service metadata: name: micro spec: type: LoadBalancer ports: - name: api-http port: 80 targetPort: "api-port" protocol: TCP selector: app: micro </code></pre> <p>greet-deployment.yml</p> <pre><code>apiVersion: apps/v1beta1 kind: Deployment metadata: name: greeter-api spec: replicas: 1 selector: matchLabels: app: greeter-api template: metadata: labels: app: greeter-api spec: containers: - name: greeter-api-service image: greeter-api:latest imagePullPolicy: Always command: [ "./greet", "--selector=static", "--server_address=:8080", ] ports: - containerPort: 8080 name: greet-port </code></pre> <p>greet-svc.yml</p> <pre><code>apiVersion: v1 kind: Service metadata: name: greet labels: app: greet spec: ports: - port: 8080 protocol: TCP selector: app: greet </code></pre> </div>

JAVA解析JSON出错贴出错误信息和代码求解答

我要解析的JSON response.toString()是: {"res":"01","info":{"SongName":"L\u1ee1 y\u00eaubbbbbbbb","WordNum":"2","PyCode":"LY","Stroke":"0","SingerName1":"Hu\u1ef3nh Nh\u1eadt Huy","SingerName2":"","FileName":"2","Lang":"1","SongTypeID":"3","SingerID1":"123","SingerID2":"456","MType":"1","yTrack":"0","bTrack":"1","yVolume":"92","bVolume":"92","NewSong":"1","style":"9","SongNameSpell":"aaa","SingerNameSpell1":null,"SingerNameSpell2":null}} 然后解析的时候用 JSONObject obj = new JSONObject(response.toString()); String l = obj.getString("Lang"); String w = obj.getString("WordNum"); Log.i("解析后的数据 ", "WordNum" + w); 我这样写了之后后台打印出 没有Lang这个value, 然后经过注释(我没有全试)发现好像我打印哪个值都会有这样的提示 请问这是什么原因啊。。。

VS code C语言调试提示:lanch:program‘E:\develop\Visual Stodio Code\a.exe'does not exit

大佬们:刚装的环境 学习C语言 代码示例调试时提示:lanch:program‘E:\develop\Visual Stodio Code\a.exe'does not exit。调了半天,请大佬们指出问题在哪? 程序代码 ``` #include <stdio.h> int g_var=0; void print_line(char *str) { if(str!=NULL) printf("%s\r\n",str); else printf("null string\r\n"); } int main(int argc, char const *argv[]) { int l_var=1; print_line("hello world"); printf("g_var=%d,l_var=%d.\r\n",g_var,l_var); return 0; } ``` takks.json ``` { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "command": "gcc", "args": [ "-g", "${file}", "-o", "${workspaceRoot}/hello.exe" ], "problemMatcher": { "owner": "cpp", "fileLocation": ["relative", "${workspaceRoot}"], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } } ``` lanuch.json ``` { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/a.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true, "MIMode": "gdb", "miDebuggerPath": "/path/to/gdb.exe",// "miDebuggerPath": "/path/to/gdb" "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": false// "ignoreFailures": true } ], "preLaunchTask": "gcc",//原来没有 } ] ```

Visual Studio Code launch.json ["program"]&["cwd"]怎么用??

**Code/.vscode/launch.json** (Code内包括Files目录): ```json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(Windows) 启动", "type": "cppvsdbg", "request": "launch", "program": "${../Files}/char.cpp", "args": ["HelloWorld"], "stopAtEntry": true, "cwd": "${../Files/}", "environment": [], "externalConsole": true } ] } ``` 那个 **cwd **出错了,说是 _无效_ !问大佬们怎么解决?

继续安装:“无法加载软件包”(即使设置了GOPATH)

<div class="post-text" itemprop="text"> <p>I'm just getting started with the Go programming language and installed Go using the Windows installer from the website. I tested installation by using <code>go run hello.go</code> and that works. The problem comes when I try to build my first program:</p> <pre><code>$ echo $GOROOT C:\Go\ $ echo $GOPATH /cygdrive/c/Users/Paul/Documents/Home/go mkdir -p $GOPATH/src/hello </code></pre> <p>Inside that directory I have a simple <code>hello.go</code> program:</p> <pre><code>package main import "fmt" func main() { fmt.Printf("Hello, world. ") } </code></pre> <p>The problem comes when I try to build and install:</p> <pre><code>$ go install hello can't load package: package hello: cannot find package "hello" in any of: C:\Go\src\hello (from $GOROOT) \cygdrive\c\Users\Paul\Documents\Home\go\src\hello (from $GOPATH) </code></pre> </div>

VScode在设置C语言环境时gcc报错

我的gcc -v和gdb-v都可以在terminal里成功执行, **我的launch.json是这样的: { "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", // 配置名称,将会在启动配置的下拉菜单中显示 "type": "cppdbg", // 配置类型,这里只能为cppdbg "request": "launch", // 请求配置类型,可以为launch(启动)或attach(附加) "program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",// 将要进行调试的程序的路径 "args": [], // 程序调试时传递给程序的命令行参数,一般设为空即可 "stopAtEntry": false, // 设为true时程序将暂停在程序入口处,一般设置为false "cwd": "${workspaceFolder}", // 调试程序时的工作目录,一般为${workspaceFolder}即代码所在目录 "environment": [], "externalConsole": true, // 调试时是否显示控制台窗口,一般设置为true显示控制台 "MIMode": "gdb", "miDebuggerPath": "D:\\C#\\GCC\\bin\\gdb.exe", // miDebugger的路径,注意这里要与MinGw的路径对应 "preLaunchTask": "gcc", // 调试会话开始前执行的任务,一般为编译程序,c++为g++, c为gcc "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] } **我的task.json是这样的: { "version": "2.0.0", "command": "g++", "args": ["-g","${file}","-o","${fileBasenameNoExtension}.exe"], // 编译命令参数 "problemMatcher": { "owner": "cpp", "fileLocation": ["relative", "${workspaceFolder}"], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } } 然后我F5调试的时候报错为: 下图找不到gcc??? 请问一下广大网友如何解决

VScode调试时单步跳出失效

利用VScode对C语言编写的代码进行调试时, 点击单步跳出会弹出如图的错误 请问我该如何修改调试文件或者其他文件? 程序代码如下: 断点在printf函数处 ``` #include<stdio.h> #include<stdlib.h> int main(void) { for(int i=0;i<10;i++) printf("Hello world!\n"); system("pause"); return 0; } ``` ![图片说明](https://img-ask.csdn.net/upload/201912/03/1575361003_51914.png) launch.json文件内容如下 ``` { "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "preLaunchTask": "build", "type": "cppdbg", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true, "MIMode": "gdb", "miDebuggerPath": "C:/mingw64/bin/gdb.exe", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true, } ], "launchCompleteCommand": "exec-run", }] } ``` tasks.json文件内容如下 ``` { "version": "2.0.0", "tasks": [ { "label": "build", "type": "shell", "group": { "kind": "build", "isDefault": true }, "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared" }, "windows": { "command": "g++", "args": [ "-g", "\"${file}\"", "--std=c++11", "-o", "\"${fileDirname}\\${fileBasenameNoExtension}.exe\"", "-finput-charset=UTF-8", "-fexec-charset=GBK" ] } } ] } ```

Golang:Hello world不会打印到屏幕上并且程序不会退出

<div class="post-text" itemprop="text"> <p>When I run the following code with the command "go.exe run main.go", the program doesnt print text to the screen or exit. </p> <pre><code>package main import "fmt" func main(){ fmt.Println("Hello world") } </code></pre> <p>go.exe version = go version go.1.5.1 windows/amd64</p> <p>set GOARCH=386</p> <p>set GOBIN=</p> <p>set GOEXE=.exe</p> <p>set GOHOSTARCH=386</p> <p>set GOHOSTOS=windows</p> <p>set GOOS=windows</p> <p>set GOPATH=C:\project</p> <p>set GORACE=</p> <p>set GOROOT=C:\Go</p> <p>set GOTOOLDIR=C:\Go\pkg\tool\windows_386</p> <p>set GO15VENDOREXPERIMENT=</p> <p>set CC=gcc</p> <p>set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0</p> <p>set CXX=g++</p> <p>set CGO_ENABLED=1</p> <p>Any ideas what's wrong?</p> <p>Thanks</p> <p>EDIT:</p> <p>I tried uninstalling the windows/amd64 version and installing windows/386 to no avail. It's installed in c:\Go and the PATH is set. I'm using windows 10.</p> <p>Line feeds</p> <pre><code>package mainLF LF import "fmt"LF LF func main(){LF fmt.Println("Hello world")LF }LF </code></pre> <p>The following doesn't print to the command prompt either.</p> <pre><code>package main //import "fmt" func main(){ println("Hello world") } </code></pre> <p>The following gives the error "fmt imported but not used" so it must be doing something. </p> <pre><code>package main import "fmt" func main(){ } </code></pre> <p>GOROOT is set to C:\Go\</p> <p>PATH: C:\Go\bin</p> <p><a href="http://i.stack.imgur.com/tfu9k.jpg" rel="nofollow">Image showing how I'm running the program</a></p> <p>EDIT: New Image </p> <p><a href="http://i.stack.imgur.com/58Asf.jpg" rel="nofollow">Updated image</a></p> </div>

扩展问题无法启用或安装

<div class="post-text" itemprop="text"> <p>php 7.3.5 hello i have a problem with the extension ext-http , and composer say me ext-http is missing even if i write this in composer .json , why ? this this exact message: _Problem 1 - The requested PHP extension ext-http * is missing from your system. Install or enable PHP's http extension. i tried to see th php.ini , and it i saw nothin to be relevant </p> <p>with delete the entire vendor directroy it's work maybe it's cause to the version of php after ...</p> <pre class="lang-php prettyprint-override"><code>{ "type": "project", "license": "proprietary", "require": { "php": "^7.1.3", "ext-ctype": "*", "ext-iconv": "*", "psr/log": "^1.1", "ext-intl" : "*", "ext-http": "*", "sensio/framework-extra-bundle": "^5.2", "sensiolabs/security-checker": "^5.0", "swiftmailer/swiftmailer": "^6.0", "symfony/asset": "4.2.*", "symfony/console": "4.2.*", "symfony/debug": "4.2.*", "symfony/debug-pack": "^1.0", "symfony/dependency-injection": "4.2.*", "symfony/dotenv": "4.2.*", "symfony/expression-language": "4.2.*", "symfony/flex": "^1.1", "symfony/form": "4.2.*", "symfony/framework-bundle": "4.2.*", "symfony/monolog-bundle": "^3.1", "symfony/orm-pack": "*", "symfony/process": "4.2.*", "symfony/security-bundle": "4.2.*", "symfony/serializer-pack": "*", "symfony/swiftmailer-bundle": "^3.1", "symfony/translation": "4.2.*", "symfony/twig-bundle": "4.2.*", "symfony/validator": "4.2.*", "symfony/web-link": "4.2.*", "symfony/webpack-encore-bundle": "^1.2", "symfony/yaml": "4.2.*" }, "require-dev": { "doctrine/doctrine-fixtures-bundle": "^3.1", "symfony/maker-bundle": "^1.0", "symfony/profiler-pack": "*", "symfony/test-pack": "*", "symfony/web-server-bundle": "4.2.*" }, "config": { "preferred-install": { "*": "dist" }, "sort-packages": true }, "autoload": { "psr-4": { "App\\": "src/" } }, "autoload-dev": { "psr-4": { "App\\Tests\\": "tests/" } }, "replace": { "paragonie/random_compat": "2.*", "symfony/polyfill-ctype": "*", "symfony/polyfill-iconv": "*", "symfony/polyfill-php71": "*", "symfony/polyfill-php70": "*", "symfony/polyfill-php56": "*" }, "scripts": { "auto-scripts": { "cache:clear": "symfony-cmd", "assets:install %PUBLIC_DIR%": "symfony-cmd", "security-checker security:check": "script" }, "post-install-cmd": [ "@auto-scripts" ], "post-update-cmd": [ "@auto-scripts" ] }, "conflict": { "symfony/symfony": "*" }, "extra": { "symfony": { "allow-contrib": false, "require": "4.2.*" } } } </code></pre> </div>

JavaScript如何合并多个存在同一数组里面的object?

已知有一个数组 ``` const array = [ { "a" : { "b" : { "c" : { "msg": "hello"} } } }, {"a" :{ "c" : { "msg": "hello"} } } ]; ``` 我想寻求一个function可以把数组里面的objects全部merge到一起。 结果如下: ``` { "a": { "b": { "c": { "msg": "hello" } }, "c": { "msg": "hello" } } } ``` 因为在merge的过程中,是要省略相同,保留不同。Object.assign()并不能做到这一点,想请问有什么办法可以达到这个目的。 js新手,谢谢大家!

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

HoloLens2开发入门教程

本课程为HoloLens2开发入门教程,讲解部署开发环境,安装VS2019,Unity版本,Windows SDK,创建Unity项目,讲解如何使用MRTK,编辑器模拟手势交互,打包VS工程并编译部署应用到HoloLens上等。

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

Only老K说-爬取妹子图片(简单入门)

安装第三方请求库 requests 被网站禁止了访问 原因是我们是Python过来的 重新给一段 可能还是存在用不了,使用网页的 编写代码 上面注意看匹配内容 User-Agent:请求对象 AppleWebKit:请求内核 Chrome浏览器 //请求网页 import requests import re //正则表达式 就是去不规则的网页里面提取有规律的信息 headers = { 'User-Agent':'存放浏览器里面的' } response = requests.get

2020_五一数学建模_C题_整理后的数据.zip

该数据是我的程序读取的数据,仅供参考,问题的解决方案:https://blog.csdn.net/qq_41228463/article/details/105993051

R语言入门基础

本课程旨在帮助学习者快速入门R语言: 课程系统详细地介绍了使用R语言进行数据处理的基本思路和方法。 课程能够帮助初学者快速入门数据处理。 课程通过大量的案例详细地介绍了如何使用R语言进行数据分析和处理 课程操作实际案例教学,通过编写代码演示R语言的基本使用方法和技巧

人才招聘系统PHP+MySQL源码

PHP 5.0及以上 + MySQL 5.0及以上 开发的人才招聘系统完全可运行源码,按照操作说明简单配置即可运行。学习PHPWEB应用的完整系统程序源码。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

python可视化分析(matplotlib、seaborn、ggplot2)

python可视化分析总结(matplotlib、seaborn、ggplot)一、matplotlib库1、基本绘图命令3、图形参数设置4、特殊统计图的绘制4.1 数学函数图4.2 气泡图4.1 三维曲面图二、seaborn库1、常用统计图1.1 箱线图1.2 小提琴图1.3 点图1.4 条图与计数图1.5 分组图1.6 概率分布图2、联合图3、配对图三、ggplot库1、图层画法+常用图形2、快速绘图 一、matplotlib库 1、基本绘图命令 import matplotlib.pyplot as

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

课程主要面向嵌入式Linux初学者、工程师、学生 主要从一下几方面进行讲解: 1.linux学习路线、基本命令、高级命令 2.shell、vi及vim入门讲解 3.软件安装下载、NFS、Samba、FTP等服务器配置及使用

人工智能-计算机视觉实战之路(必备算法+深度学习+项目实战)

系列课程主要分为3大阶段:(1)首先掌握计算机视觉必备算法原理,结合Opencv进行学习与练手,通过实际视项目进行案例应用展示。(2)进军当下最火的深度学习进行视觉任务实战,掌握深度学习中必备算法原理与网络模型架构。(3)结合经典深度学习框架与实战项目进行实战,基于真实数据集展开业务分析与建模实战。整体风格通俗易懂,项目驱动学习与就业面试。 建议同学们按照下列顺序来进行学习:1.Python入门视频课程 2.Opencv计算机视觉实战(Python版) 3.深度学习框架-PyTorch实战/人工智能框架实战精讲:Keras项目 4.Python-深度学习-物体检测实战 5.后续实战课程按照自己喜好选择就可以

【大总结2】大学两年,写了这篇几十万字的干货总结

本文十天后设置为粉丝可见,喜欢的提前关注 不要白嫖请点赞 不要白嫖请点赞 不要白嫖请点赞 文中提到的书我都有电子版,可以评论邮箱发给你。 文中提到的书我都有电子版,可以评论邮箱发给你。 文中提到的书我都有电子版,可以评论邮箱发给你。 本篇文章应该算是Java后端开发技术栈的,但是大部分是基础知识,所以我觉得对任何方向都是有用的。 1、数据结构 数据结构是计算机存储、...

lena全身原图(非256*256版本,而是全身原图)

lena全身原图(非256*256版本,而是全身原图) lena原图很有意思,我们通常所用的256*256图片是在lena原图上截取了头部部分的256*256正方形得到的. 原图是花花公子杂志上的一个

【项目实战】 图书信息管理系统(Maven,mybatis)(第一个自己独立完成的项目)

《程序设计综合训练实践报告》 此项目为图书信息管理系统,是一个采用了mysql+mybatis框架+java编写的maven项目

图书管理系统(Java + Mysql)我的第一个完全自己做的实训项目

图书管理系统 Java + MySQL 完整实训代码,MVC三层架构组织,包含所有用到的图片资源以及数据库文件,大三上学期实训,注释很详细,按照阿里巴巴Java编程规范编写

Python入门视频精讲

Python入门视频培训课程以通俗易懂的方式讲解Python核心技术,Python基础,Python入门。适合初学者的教程,让你少走弯路! 课程内容包括:1.Python简介和安装 、2.第一个Python程序、PyCharm的使用 、3.Python基础、4.函数、5.高级特性、6.面向对象、7.模块、8.异常处理和IO操作、9.访问数据库MySQL。教学全程采用笔记+代码案例的形式讲解,通俗易懂!!!

20行代码教你用python给证件照换底色

20行代码教你用python给证件照换底色

2018年全国大学生计算机技能应用大赛决赛 大题

2018年全国大学生计算机技能应用大赛决赛大题,程序填空和程序设计(侵删)

MySQL数据库从入门到实战应用

限时福利1:购课进答疑群专享柳峰(刘运强)老师答疑服务 限时福利2:购课后添加学习助手(微信号:csdn590),按消息提示即可领取编程大礼包! 为什么说每一个程序员都应该学习MySQL? 根据《2019-2020年中国开发者调查报告》显示,超83%的开发者都在使用MySQL数据库。 使用量大同时,掌握MySQL早已是运维、DBA的必备技能,甚至部分IT开发岗位也要求对数据库使用和原理有深入的了解和掌握。 学习编程,你可能会犹豫选择 C++ 还是 Java;入门数据科学,你可能会纠结于选择 Python 还是 R;但无论如何, MySQL 都是 IT 从业人员不可或缺的技能! 【课程设计】 在本课程中,刘运强老师会结合自己十多年来对MySQL的心得体会,通过课程给你分享一条高效的MySQL入门捷径,让学员少走弯路,彻底搞懂MySQL。 本课程包含3大模块:&nbsp; 一、基础篇: 主要以最新的MySQL8.0安装为例帮助学员解决安装与配置MySQL的问题,并对MySQL8.0的新特性做一定介绍,为后续的课程展开做好环境部署。 二、SQL语言篇: 本篇主要讲解SQL语言的四大部分数据查询语言DQL,数据操纵语言DML,数据定义语言DDL,数据控制语言DCL,学会熟练对库表进行增删改查等必备技能。 三、MySQL进阶篇: 本篇可以帮助学员更加高效的管理线上的MySQL数据库;具备MySQL的日常运维能力,语句调优、备份恢复等思路。 &nbsp;

C/C++学习指南全套教程

C/C++学习的全套教程,从基本语法,基本原理,到界面开发、网络开发、Linux开发、安全算法,应用尽用。由毕业于清华大学的业内人士执课,为C/C++编程爱好者的教程。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 购课后添加学习助手(微信号:csdn590),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdn590</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

Eclipse archetype-catalog.xml

Eclipse Maven 创建Web 项目报错 Could not resolve archetype org.apache.maven.archetypes:maven-archetype-web

使用TensorFlow+keras快速构建图像分类模型

课程分为两条主线: 1&nbsp;从Tensorflow的基础知识开始,全面介绍Tensorflow和Keras相关内容。通过大量实战,掌握Tensorflow和Keras经常用到的各种建模方式,参数优化方法,自定义参数和模型的手段,以及对训练结果评估与分析的技巧。 2&nbsp;从机器学习基础算法开始,然后进入到图像分类领域,使用MNIST手写数据集和CIFAR10图像数据集,从简单神经网络到深度神经网络,再到卷积神经网络,最终完成复杂模型:残差网络的搭建。完成这条主线,学员将可以自如地使用机器学习的手段来达到图像分类的目的。

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

最近面试Java后端开发的感受:如果就以平时项目经验来面试,通过估计很难,不信你来看看

在上周,我密集面试了若干位Java后端的候选人,工作经验在3到5年间。我的标准其实不复杂:第一能干活,第二Java基础要好,第三最好熟悉些分布式框架,我相信其它公司招初级开发时,应该也照着这个标准来面的。 我也知道,不少候选人能力其实不差,但面试时没准备或不会说,这样的人可能在进团队干活后确实能达到期望,但可能就无法通过面试,但面试官总是只根据面试情况来判断。 但现实情况是,大多数人可能面试前没准备,或准备方法不得当。要知道,我们平时干活更偏重于业务,不可能大量接触到算法,数据结构,底层代码这类面试必问

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

微信小程序开发实战之番茄时钟开发

微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

相关热词 c#分级显示数据 c# 不区分大小写替换 c#中调用就java c#正则表达式 验证小数 c# vscode 配置 c#三维数组能存多少数据 c# 新建excel c#多个文本框 c#怎么创建tcp通讯 c# mvc 电子病例
立即提问