F-statistic vs. constant model: 5.36, p-value = 0.0161什么意思啊?

用软件matlab 函数NonLinearModel.fit编了个多元非线性回归模型程序 运行结果最后一句F-statistic vs. constant model: 5.36, p-value = 0.0161什么意思啊?

1个回答

csdn_xinyi
csdn_xinyi 谢谢你
7 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
java.text.ParseException: Unparseable date
java.text.ParseException: Unparseable date: "2018-06-19 08:30" java.text.DateFormat.parse(DateFormat.java:366) com.sta.util.Util.parseTime(Util.java:39) com.sta.action.ManageAction.statistic(ManageAction.java:1983) com.sta.action.ManageAction.statisticStulist(ManageAction.java:2133) ![![图片说明](https://img-ask.csdn.net/upload/201806/24/1529850724_366225.png)图片说明](https://img-ask.csdn.net/upload/201806/24/1529850713_225802.png)
R语言如何看adf.test和ur.df两个函数检验序列平稳性的结论。求指教!
library(tseries) library(forecast) library(urca) library(vars) set.seed(12345) u<-rnorm(500) x<-cumsum(u) y<-x+u ##如果用adf.test adf.test(y) ##结果是: Augmented Dickey-Fuller Test data: y Dickey-Fuller = -2.5536, Lag order = 7, p-value = 0.344 alternative hypothesis: stationary ##请问是平稳序列吗??看哪些数值? ##对同一个序列,如果用ur.df summary(ur.df(y)) ##结果是 ############################################### # Augmented Dickey-Fuller Test Unit Root Test # ############################################### Test regression none Call: lm(formula = z.diff ~ z.lag.1 - 1 + z.diff.lag) Residuals: Min 1Q Median 3Q Max -5.5235 -1.3095 0.0289 1.4407 5.4889 Coefficients: Estimate Std. Error t value Pr(>|t|) z.lag.1 0.0007778 0.0028307 0.275 0.784 z.diff.lag -0.3831155 0.0415501 -9.221 <2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 2.051 on 496 degrees of freedom Multiple R-squared: 0.1464, Adjusted R-squared: 0.143 F-statistic: 42.54 on 2 and 496 DF, p-value: < 2.2e-16 Value of test-statistic is: 0.2748 Critical values for test statistics: 1pct 5pct 10pct tau1 -2.58 -1.95 -1.62 ##请问是平稳序列吗?看哪些数值? ##如果两个结果不一样,为什么?
安卓app调用支付宝,在6.0系统上需要动态获取权限么?需要获取什么权限?
如题,在非6.0系统上运行无问题,在6.0系统上支付也能成功,但是log那里打印出了一个异常 06-02 18:46:51.842 24099-25878/com.chaichew.chop W/System.err: java.lang.SecurityException: getDeviceId: Neither user 10206 nor current process has android.permission.READ_PHONE_STATE. 06-02 18:46:51.843 24099-25878/com.chaichew.chop W/System.err: at android.os.Parcel.readException(Parcel.java:1599) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at android.os.Parcel.readException(Parcel.java:1552) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:4175) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:706) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.util.a.<init>(SourceFile:38) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.util.a.a(SourceFile:27) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.tid.b.a(SourceFile:79) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.app.statistic.c.<init>(SourceFile:67) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.app.statistic.a.a(SourceFile:21) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.app.PayTask.<init>(SourceFile:57) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.chaichew.chop.alipay.AlipayUtil$2.run(AlipayUtil.java:125) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at java.lang.Thread.run(Thread.java:818) 百度了一下这个,说是因为编译的target版本是23,在6.0系统上就要动态获取权限,但是,没做过这个,不知道怎么动态获取,而且支付宝需不需要动态获取权限?需要获取什么权限?求解答,急
正则表达式匹配不成功,求解释原因及正确姿势
日志部分内容如下: 2016-02-21 09:59:58.522 INFO 0a030860-2003-24266999-236 c3 /result/payNotifyResult.htm 17 0 2016-02-21 09:59:59.092 INFO 0a030860-2003-24266999-237 c0 /cashier/getCode.htm 1 71 2016-02-21 09:59:59.303 INFO 0a030860-2003-24266999-203 c6 /cashier/qwaitResult.htm 9522 154 2016-02-21 09:59:59.450 INFO 0a030860-2003-24266999-238 c9 /cashier/home.htm 49 0 2016-02-21 09:59:59.656 INFO 0a030860-2003-24266999-240 c1 /cashier/statistic.htm 8 146 我想匹配 09:30:00.000-10:00:00.000 (左闭右开) 时间段的行 我的写法: awk '$2 ~ /^09:[3-5]{1}.*/ {print $0}' request.log.2016-02-21.log 但是没有结果,求解释原因及正确姿势
配置dubbo-monitor无charts下相关服务统计图
说明:最近搭建dubbo rest技术整合,选用版本zookeeper3.4.6; dubbox-2.8.4a.jar ; dubbo-admin-2.8.4; dubbo-monitor-2.8.4; 环境介绍完毕。 前期zookeeper集群,dubbo-admin控制台,以及demo一切顺利;但是后来需求决定,要增加对服务端监控,于是搭建dubbo-monitor监控中心系统。搭建后服务一切正常,但是唯独,没有monitor下服务监控统计数据,通过日志,发现后台每次调用monitorService获取数据是会出现错误。网上找了好多资料,也没有找到正确答案,现寻求哪位大神指点,万分感激! 注:我的dubbo-monitor下的相关charts路径都已建好,就是没数据。 错误日志如下: 016-10-28 18:17:05,327 INFO [DubboMonitor.java:80] : [DUBBO] Send statistics to monitor zookeeper://25.0.88.53:2181/com.alibaba.dubbo.monitor.MonitorService?anyhost=true&application=simple-monitor&check=false&delay=-1&dubbo=2.8.4&generic=false&interface=com.alibaba.dubbo.monitor.MonitorService&methods=lookup,collect&pid=3164&revision=2.8.4&side=provider&timestamp=1477648050407, dubbo version: 2.8.4, current host: 25.0.86.130 2016-10-28 18:17:05,343 ERROR [DubboMonitor.java:72] : [DUBBO] Unexpected error occur at send statistic, cause: Failed to invoke the method collect in the service com.alibaba.dubbo.monitor.MonitorService. Tried 3 times of the providers [25.0.86.130:7070] (1/1) from the registry 25.0.88.53:2181 on the consumer 25.0.86.130 using the dubbo version 2.8.4. Last error is: Failed to invoke remote method: collect, provider: dubbo://25.0.86.130:7070/com.alibaba.dubbo.monitor.MonitorService?anyhost=true&application=simple-monitor&check=false&delay=-1&dubbo=2.8.4&generic=false&interface=com.alibaba.dubbo.monitor.MonitorService&methods=lookup,collect&pid=3164&revision=2.8.4&side=provider&timestamp=1477648050407, cause: Fail to decode request due to: RpcInvocation [methodName=collect, parameterTypes=[], arguments=null, attachments={path=com.alibaba.dubbo.monitor.MonitorService, input=682, dubbo=2.8.4, version=0.0.0}], dubbo version: 2.8.4, current host: 25.0.86.130 com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method collect in the service com.alibaba.dubbo.monitor.MonitorService. Tried 3 times of the providers [25.0.86.130:7070] (1/1) from the registry 25.0.88.53:2181 on the consumer 25.0.86.130 using the dubbo version 2.8.4. Last error is: Failed to invoke remote method: collect, provider: dubbo://25.0.86.130:7070/com.alibaba.dubbo.monitor.MonitorService?anyhost=true&application=simple-monitor&check=false&delay=-1&dubbo=2.8.4&generic=false&interface=com.alibaba.dubbo.monitor.MonitorService&methods=lookup,collect&pid=3164&revision=2.8.4&side=provider&timestamp=1477648050407, cause: Fail to decode request due to: RpcInvocation [methodName=collect, parameterTypes=[], arguments=null, attachments={path=com.alibaba.dubbo.monitor.MonitorService, input=682, dubbo=2.8.4, version=0.0.0}] at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:108) at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227) at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72) at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) at com.alibaba.dubbo.common.bytecode.proxy2.collect(proxy2.java) at com.alibaba.dubbo.monitor.dubbo.DubboMonitor.send(DubboMonitor.java:113) at com.alibaba.dubbo.monitor.dubbo.DubboMonitor$1.run(DubboMonitor.java:70) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: com.alibaba.dubbo.remoting.RemotingException: Fail to decode request due to: RpcInvocation [methodName=collect, parameterTypes=[], arguments=null, attachments={path=com.alibaba.dubbo.monitor.MonitorService, input=682, dubbo=2.8.4, version=0.0.0}] at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:190) at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:110) at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:84) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:96) at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:144) at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:74) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53) at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:77) ... 13 more
ssm整合Junit4 报 绑定异常
这个测试我之前是可以用的。然后我重新装系统了。重新git下来就是这样了。 package com.komlin.modular.mapper; import Model.ClassArrangeData; import com.komlin.component.Junit.JUnit4ClassRunner; import com.komlin.component.utils.PoiUtil; import com.komlin.component.utils.UUIDUtils; import com.komlin.modular.education.mapper.*; import com.komlin.modular.education.model.ClassInfo; import com.komlin.modular.education.model.Course; import com.komlin.modular.education.model.StudentScore; import com.komlin.modular.education.pojo.dto.*; import com.komlin.modular.education.pojo.vo.response.StudentCouserArrangeResponse; import com.komlin.modular.system.mapper.MenuMapper; import com.komlin.modular.system.mapper.RoleMenuMapper; import com.komlin.modular.system.mapper.UserInfoMapper; import com.komlin.modular.system.model.Menu; import com.komlin.modular.system.model.RoleMenu; import com.komlin.modular.system.model.UserInfo; import com.komlin.modular.system.DTO.SelectProfessionInfoByUserIdDTO; import net.sf.json.JSONArray; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import java.util.*; /** * @author huzhengxing * @description: * @date 2017/11/6 15:46 */ @RunWith(JUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:spring/applicationContext-*.xml") public class EducationMapperTest { private Logger logger = Logger.getLogger(EducationMapperTest.class); @Autowired private UserInfoMapper userInfoMapper; @Autowired private ClassInfoMapper classInfoMapper; @Autowired private CourseArrangeMapper courseArrangeMapper; @Autowired private TutorTeacherMapper tutorTeacherMapper; @Autowired private ProfessionArrangeMapper professionArrangeMapper; @Autowired private StudentScoreMapper studentScoreMapper; @Autowired private CourseMapper courseMapper; @Autowired private MenuMapper menuMapper; @Autowired private RoleMenuMapper roleMenuMapper; @Test public void insertRoleMenu() { List<Menu> menus = menuMapper.selectMenuList(); for (Menu menu : menus) { RoleMenu record = new RoleMenu(); record.setRmId(UUIDUtils.getUniquekey()); record.setRmRId(4); record.setRmMId(menu.getMenuId()); roleMenuMapper.insertSelective(record); } } @Test public void listCourseArrange() { List<CourseArrangeDTO> courseArrangeDTOS = courseArrangeMapper.listCourseArrange(null, null, null, null, null, null); System.out.println(courseArrangeDTOS); } @Test public void listStudentInfo() { System.out.println(JSONArray.fromObject(userInfoMapper.listStudentInfo())); } } 异常 ocking Pass-Through Statistic: LOCAL_DISK_SIZE_BYTES> 2018-05-14 17:39:16,952 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: LOCAL_DISK_SIZE_BYTES> 2018-05-14 17:39:16,952 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: WRITER_QUEUE_LENGTH> 2018-05-14 17:39:16,952 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatipl] - <Mocking Pass-Through Statistic: LAST_REJOIN_TIMESTAMP> 2018-05-14 17:39:16,953 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStatisticsImpl] - <Mocking Pass-Through Statistic: LAST_REJOIN_TIMESTAMP> 2018-05-14 17:39:16,995 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStati9:16,997 DEBUG [net.sf.ehcache.statistics.extended.ExtendedStati org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.komlin.modular.education.mapper.StudentScoreMapper.listStudentInfo at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189) at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43) at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51) at com.sun.proxy.$Proxy31.listStudentInfo(Unknown Source) at com.komlin.modular.mapper.EducationMapperTest.insertStudentScore(EducationMapperTest.java:273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Disconnected from the target VM, address: '127.0.0.1:39803', transport: 'socket' Process finished with exit code 255
#Leaflet#用Chart.js在JavaScript生成的canvas里面绘制饼图 获取ElementID后出错
一个基于Leaflet开发的小小小项目 问题大概只这样的: 首先是我用L.control()生成一个控件(info),通过.update()方法对控件进行更新。在.update()中我创建了一个新的canvas元素,之后通过document.getElementById()获取该元素,并使用Chart.js库创建一个饼图。在调用Chart.js库的时候就报错了(TypeError: item is null)。 ``` 相关资源: <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.js"></script> <style> #map{ height: 70% } .info { padding: 16px 10px; font: 14px/16px Arial, Helvetica, sans-serif; background: white; background: rgba(255,255,255,0.8); box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 5px; } .info h4 { margin: 0 0 5px; color: 'white'; } </style> ``` 报错内容如下: TypeError: item is nullChart.bundle.js:6904:14 acquireContext https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.js:6904 construct https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.js:8423 Chart https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.js:8410 update http://127.0.0.1:5500/static/js/load_tiff.js:85 onAdd http://127.0.0.1:5500/static/js/load_tiff.js:76 addTo http://127.0.0.1:5500/static/js/leaflet/leaflet.js:5 <anonymous> http://127.0.0.1:5500/static/js/load_tiff.js:90 ``` 相关代码如下: var randomScalingFactor = function() { return Math.round(Math.random() * 100); }; var config = { type: 'pie', data: { datasets: [{ data: [ randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), ], backgroundColor: [ "rgba(230, 14, 14, 1)", "rgba(230, 122, 14, 1)", "rgba(230, 230, 14, 1)", "rgba(122, 230, 14, 1)", "rgba(14, 122, 230, 1)", ], label: 'Dataset 1' }], labels: [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue' ] }, options: { responsive: true } }; var info = L.control(); info.onAdd = function(mymap) { this._div = L.DomUtil.create('div', 'info'); this.update(); return this._div; }; info.update = function() { var content = '<h4>Statistic Info</h4>' + '<br />'; content += '<canvas id="myChart" width="10" height="10"></canvas>'; this._div.innerHTML = content; var piechart = new Chart(document.getElementById('myChart'),config) }; info.addTo(mymap); ```
Lost Cows C语言来实现
Problem Description N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood 'watering hole' and drank a few too many beers before dinner. When it was time to line up for their evening meal, they did not line up in the required ascending numerical order of their brands. Regrettably, FJ does not have a way to sort them. Furthermore, he's not very good at observing problems. Instead of writing down each cow's brand, he determined a rather silly statistic: For each cow in line, he knows the number of cows that precede that cow in line that do, in fact, have smaller brands than that cow. Given this data, tell FJ the exact ordering of the cows. Input * Line 1: A single integer, N * Lines 2..N: These N-1 lines describe the number of cows that precede a given cow in line and have brands smaller than that cow. Of course, no cows precede the first cow in line, so she is not listed. Line 2 of the input describes the number of preceding cows whose brands are smaller than the cow in slot #2; line 3 describes the number of preceding cows whose brands are smaller than the cow in slot #3; and so on. Output * Lines 1..N: Each of the N lines of output tells the brand of a cow in line. Line #1 of the output tells the brand of the first cow in line; line 2 tells the brand of the second cow; and so on. Sample Input 5 1 2 1 0 Sample Output 2 4 5 3 1
修改程序:信源编解码(c语言)
修改程序:问题1。源文件source文本空间太长汉字太多无法运行2,未按频度要求排序 问题描述: 信源编解码是通信系统的重要组成部分。本实验旨在通过程序设计实现基于哈夫曼编码的信源编解码算法。程序具备以下功能: 对于给定的源文档 SourceDoc.txt, 1) 统计其中所有字符的频度(某字符的频度等于其出现的总次数除以总字符数) , 包括字母(区分大小写) 、标点符号及格式控制符(空格、回车等) 。 2) 按频度统计结果生成哈夫曼编码码表。 3) 基于哈夫曼码表进行编码,生成对应的二进制码流,并输出到文件 Encode.dat。 4) 对二进制码流进行哈夫曼解码,把结果输出到文件 DecodeDoc.txt。 5) 判断DecodeDoc.txt与SourceDoc.txt内容是否一致,以 验证编解码系统的正确性。 要求: 1) 用 C 语言实现。 2) 用子函数实现各功能模块。 3) 输出文件 Statistic.txt,包含的信息有:按频度大小排序的字符表,及各字符出现 的次数、频度及哈夫曼编码。 4) 应至少包含链表、二叉树的数据结构。 5) 不能用冒泡排序算法。 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<sys/stat.h> #include<sys/types.h> #include<fcntl.h> #include<unistd.h> #include<errno.h> #define N 10000 int count = 0; //每增加一个新的字符, count增加1, 可表示a中的字符种类数, 也即哈夫曼树叶子点个数 /*定义哈夫曼树结构体*/ typedef struct HuffmanTree{ int weight; int parent; int Lchild; int Rchild; }HuffmanTree[2*N]; /*定义储存字符及其出现次数的结构体*/ typedef struct DifferentCharacter{ char char_date; int num; //相同字符出现的次数 char a_code[100]; //每种字符对应的编码 }difcha[N]; /*在一定范围内选择两个weight最小的结点, 并将两个结点的序号赋给s1, s2*/ void select_two(HuffmanTree ht, int j, int *s1, int *s2) { int i = 1, temp; int min1 = 0, min2 = 0; while( (ht[i].parent != 0) && (i <= j) ) i++; *s1 = i; min1 = ht[i++].weight; while( (ht[i].parent != 0) && (i <= j) ) i++; *s2 = i; min2 = ht[i++].weight; if(min1 > min2){ temp = min1; min1 = min2; min2 = temp; } for(; i <= j; i++){ //遍历parent不为0的结点 if(ht[i].parent != 0) continue; if(ht[i].weight <= min1){ min2 = min1; min1 = ht[i].weight; *s2 = *s1; *s1 = i; } else if( (ht[i].weight < min2) && (ht[i].weight > min1) ) { min2 = ht[i].weight; *s2 = i; } } } /*建哈夫曼树*/ void EstHuffmanTree(HuffmanTree ht, int *w, int n){ int i; int s1 = 0, s2 = 0; for(i = 1; i <= n; i++){ //初始化哈夫曼树, 前n个单元存放叶子点 ht[i].weight = w[i]; ht[i].parent = 0; ht[i].Lchild = 0; ht[i].Rchild = 0; } for(i = n+1; i <= 2*n-1; i++){ //后n-1个单元存放非叶子点 ht[i].weight = 0; ht[i].parent = 0; ht[i].Lchild = 0; ht[i].Rchild = 0; } for(i = n+1; i <= 2*n-1; i++){ select_two(ht, i-1, &s1, &s2); //创建非叶子点, 建立哈夫曼树, 每次在ht[1]~ht[i-1]范围内选两个最小的weight结点,并将其序号赋给s1, s2 ht[i].weight = ht[s1].weight + ht[s2].weight; ht[i].Lchild = s1; ht[i].Rchild = s2; ht[s1].parent = i; ht[s2].parent = i; } //哈夫曼树建立完毕 } /*求哈弗曼编码*/ void CrtHuffmanCode(HuffmanTree ht, char **hcd, int n){ int start = 0, c = 0, p = 0, i; char *cd = (char*)malloc(n*sizeof(char)); //分配求当前编码的工作空间 cd[n-1] = '\0'; //从左向右存放编码 for(i = 1; i <= n; i++) { start = n-1; //初始化编码起始指针 c = i; p = ht[i].parent; while(p != 0){ start--; if(ht[p].Lchild == c) cd[start] = '0'; //左分支标0 else cd[start] = '1'; //右分支标1 c = p; //向上倒推 p = ht[c].parent; } hcd[i] = (char*)malloc((n-start)*sizeof(char)); strcpy(hcd[i], &cd[start]); } free(cd); } /*自定义错误处理函数*/ void my_err(char *err_string, int line){ printf("Line %d:\n", line); perror(err_string); exit(1); } /*从 buf_read 中统计每个字符出现的次数,将次数作为该字符的权值*/ void Statistics(difcha a, char *buf_read){ int i, j = 0; for(i = 0; i < strlen(buf_read) ; i++){ //对buf_read中的字符遍历 for(j = 0; j < count; j++){ //检查是否是新的字符 if(a[j].char_date == buf_read[i]){ a[j].num++; //若是旧字符, 则num++; break; } } if(j == count){ //若是新字符, 则记录到a中, 且对应的num++ a[count].char_date = buf_read[i]; a[count].num++; count++; //更新count } } } /*从 SourceDoc.txt 读取数据到 buf_read */ void ReadFile(char *pathName, char *buf_read){ int fd_date; int len = 0; if( (fd_date = open(pathName, O_RDWR)) < 0) //以读写方式打开SourceDoc.txt文件 my_err("open SourceDoc.txt", __LINE__); if(lseek(fd_date, 0, SEEK_END) < 0) //获取文件长度,并保持文件读写指针在文件开始处 my_err("lseek", __LINE__); if( (len = lseek(fd_date, 0, SEEK_CUR)) < 0 ) my_err("lseek", __LINE__); if(lseek(fd_date, 0, SEEK_SET) < 0) my_err("lseek", __LINE__); if(read(fd_date, buf_read, len) > len) //从SourceDoc.txt中读取内容 my_err("read SourceDoc.txt", __LINE__); } /*将 buf_code 写入 Encode.dat 中*/ void WriteFile(char *pathName, char *buf_code){ int fd_code; if((fd_code = open(pathName, O_CREAT|O_TRUNC|O_RDWR, S_IRWXU)) < 0) //创建Encode.dat文件 my_err("open Encode.dat", __LINE__); if( write(fd_code, buf_code, strlen(buf_code)) != strlen(buf_code) ) //将 buf_code 写入Encode.dat my_err("write Encode.dat", __LINE__); } /*主函数*/ void main(){ char buf_read[N] = {'\0'}; char buf_code[N] = {'\0'}; char buf_yima[N] = {'\0'}; char *hcd[N]; char temp[50] = {'\0'}; difcha a; int i, j, n, k = 0, m = 0; int w[N] = {0}; HuffmanTree ht; ReadFile("SourceDoc.txt", buf_read); Statistics(a, buf_read); for(i = 0; i < count; i++) w[i+1] = a[i].num; EstHuffmanTree(ht, w, count); //建HuffmanTree CrtHuffmanCode(ht, hcd, count); //对树中字符进行编码 for(i = 1; i <= count; i++) //将每个字符对应的编码存入结构体 a 中 strcpy(a[i-1].a_code, hcd[i]); FILE *fp1; fp1=fopen("Statistic.txt","w"); for(i = 0; i < count; i++) //查看每个字符的权值和对应的编码 fprintf(fp1,"%c %d %s\n", a[i].char_date, a[i].num, a[i].a_code); fclose(fp1); for(i = 0; i < strlen(buf_read) ; i++){ //遍历 buf_read, 给 SourceDoc.txt 中每个字符匹配编码, 存入 buf_code 中 for(j = 0; j < count; j++){ if(buf_read[i] == a[j].char_date){ strcat(buf_code, a[j].a_code); break; } } if(j == count) //匹配异常 printf("Unknown Character: %c\n", buf_read[i]); } WriteFile("Encode.dat", buf_code); //将 buf_code 写入 Encode.dat 中 ReadFile("Encode.dat", buf_read); //从 Encode.dat 中读取全部编码 n = strlen(buf_read); for(i = 0; i < n; i++){ //为 Encode.dat 中的编码匹配字符 temp[k++] = buf_read[i]; for(j = 0; j < count; j++){ if(strcmp(temp, a[j].a_code) == 0){ buf_yima[m++] = a[j].char_date; break; } } if(j < count){ //匹配成功, 对 temp 初始化 for(;k > 0; k--) temp[k] = '\0'; } } FILE *fp2; fp2=fopen("DecodeDoc.txt","w"); fprintf(fp2,"%s", buf_yima); fclose(fp2); }
springmvc+mybatis整合
spring-servlet.xml ``` <beans:bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource"> <beans:property name="driverClassName" value="org.postgresql.Driver"/> <beans:property name="url" value="jdbc:postgresql://192.168.20.61:5432/atomdb"/> <beans:property name="username" value="postgre"/> <beans:property name="password" value="postgre"/> </beans:bean> <beans:bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <beans:property name="dataSource" ref="myDataSource"/> <beans:property name="configLocation" value="/WEB-INF/db/SqlMapConfig.xml"/> </beans:bean> <beans:bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <beans:property name="basePackage" value="Mapper"/> </beans:bean> <beans:bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <beans:property name="dataSource" ref="myDataSource"/> </beans:bean> ``` SqlMapConfig.xml ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <mappers> <mapper resource="ApiServiceRepoMapper.xml" /> </mappers> </configuration> ``` ApiServiceRepoMapper.xml ``` <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.shangpin.EChars.repo.ComplexQueryRepo"> <select id="count" resultType="Integer"> SELECT "count"(*) FROM "public"."search_keyword_statistic_day" </select> </mapper> ``` Controller.java ``` @Controller @RequestMapping("/search") public class Controller { @Autowired private SearchService searchService ; @RequestMapping("/get") public void ss(){ System.out.println(searchService.count()); } } ``` SearchService.java ``` @Service public class SearchService { @Autowired ComplexQueryRepo complexQueryRepo; @Autowired public int count(){ System.out.println("222"); int a = complexQueryRepo.count(); return a; } } ``` ComplexQueryRepo.java ``` public interface ComplexQueryRepo{ public int count(); } ``` 项目能启动,发送请求/search/get后会输出222然后 ``` int a = complexQueryRepo.count(); ``` 这一行报空指针
SSH框架报错找不到action,求大神指教
我是用 ``` <a class="more" href="/stage/charge/ordershow.action"> ``` 跳转,但是报There is no Action mapped for action name ordershow.错,新手求指教 错误: ``` 六月 06, 2016 11:32:02 上午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn 警告: Could not find action or result There is no Action mapped for action name ordershow. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189) at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) ``` strust.xml配置: ``` <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <constant name="struts.devModel" value="true" /> <include file="json-default.xml" /> <include file="struts-default.xml" /> <package name="login" extends="json-default"> <action name="ordershow" class="orderAction" method="show"> <result name="show">/stage/order/order_info.jsp</result> </action> </package> <constant name="struts.i18n.encoding" value="UTF-8" /> <constant name="struts.locale" value="zh_CN" /> <constant name="struts.ui.theme" value="simple" /> <constant name="struts.ui.templateDir" value="template" /> <constant name="struts.ui.templateSuffix" value="ftl" /> </struts> ``` web.xml: ``` <?xml version="1.0" encoding="UTF-8" ?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name></display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.action</url-pattern> </filter-mapping> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:/spring-*.xml </param-value> </context-param> </web-app> ``` jsp: ``` <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib uri="/struts-tags" prefix="s"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> <!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <meta charset="utf-8" /> <title>Ttuo-Hotel | 酒店管理系统</title> <meta content="width=device-width, initial-scale=1.0" name="viewport" /> <meta content="" name="description" /> <meta content="" name="author" /> <link href="../assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> <link href="../assets/css/metro.css" rel="stylesheet" /> <link href="../assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" /> <link href="../assets/font-awesome/css/font-awesome.css" rel="stylesheet" /> <link href="../assets/fullcalendar/fullcalendar/bootstrap-fullcalendar.css" rel="stylesheet" /> <link href="../assets/css/main_style.css" rel="stylesheet" /> <link href="../assets/css/style_responsive.css" rel="stylesheet" /> <link href="../assets/css/style_default.css" rel="stylesheet" id="style_color" /> <link rel="stylesheet" type="text/css" href="../assets/chosen-bootstrap/chosen/chosen.css" /> <link rel="stylesheet" type="text/css" href="../assets/uniform/css/uniform.default.css" /> <link rel="shortcut icon" href="../favicon.ico" /> </head> <!-- END HEAD --> <!-- BEGIN BODY --> <body class="fixed-top"> <!-- BEGIN HEADER --> <div class="header navbar navbar-inverse navbar-fixed-top"> <!-- BEGIN TOP NAVIGATION BAR --> <div class="navbar-inner"> <div class="container-fluid"> <!-- BEGIN LOGO --> <a class="brand" href="index.html"> <img src="../assets/img/logo11.png" alt="logo" /> </a> <!-- END LOGO --> <!-- BEGIN RESPONSIVE MENU TOGGLER --> <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse"> <img src="../assets/img/menu-toggler.png" alt="" /> </a> <!-- END RESPONSIVE MENU TOGGLER --> <!-- BEGIN TOP NAVIGATION MENU --> <ul class="nav pull-right"> <!-- BEGIN NOTIFICATION DROPDOWN --> <li class="dropdown" id="header_notification_bar"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-warning-sign"></i> <span class="badge">6</span> </a> <ul class="dropdown-menu extended notification"> <li> <p>You have 14 new notifications</p> </li> <li><a href="javascript:;" onclick=App.onNotificationClick(1);> <span class="label label-success"><i class="icon-plus"></i> </span> New user registered. <span class="time">Just now</span> </a> </li> <li><a href="#"> <span class="label label-important"><i class="icon-bolt"></i> </span> Server #12 overloaded. <span class="time">15 mins</span> </a> </li> <li><a href="#"> <span class="label label-warning"><i class="icon-bell"></i> </span> Server #2 not respoding. <span class="time">22 mins</span> </a> </li> <li><a href="#"> <span class="label label-info"><i class="icon-bullhorn"></i> </span> Application error. <span class="time">40 mins</span> </a> </li> <li><a href="#"> <span class="label label-important"><i class="icon-bolt"></i> </span> Database overloaded 68%. <span class="time">2 hrs</span> </a> </li> <li><a href="#"> <span class="label label-important"><i class="icon-bolt"></i> </span> 2 user IP blocked. <span class="time">5 hrs</span> </a> </li> <li class="external"><a href="#">See all notifications <i class="m-icon-swapright"></i> </a> </li> </ul> </li> <!-- END NOTIFICATION DROPDOWN --> <!-- BEGIN INBOX DROPDOWN --> <li class="dropdown" id="header_inbox_bar"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-envelope-alt"></i> <span class="badge">5</span> </a> <ul class="dropdown-menu extended inbox"> <li> <p>You have 12 new messages</p> </li> <li><a href="#"> <span class="photo"><img src="../assets/img/avatar2.jpg" alt="" /> </span> <span class="subject"> <span class="from">Lisa Wong</span> <span class="time">Just Now</span> </span> <span class="message"> Vivamus sed auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> <li><a href="#"> <span class="photo"><img src="../assets/img/avatar3.jpg" alt="" /> </span> <span class="subject"> <span class="from">Richard Doe</span> <span class="time">16 mins</span> </span> <span class="message"> Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> <li><a href="#"> <span class="photo"><img src="../assets/img/avatar1.jpg" alt="" /> </span> <span class="subject"> <span class="from"></span> <span class="time">2 hrs</span> </span> <span class="message"> Vivamus sed nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> <li class="external"><a href="#">See all messages <i class="m-icon-swapright"></i> </a> </li> </ul> </li> <!-- END INBOX DROPDOWN --> <!-- BEGIN TODO DROPDOWN --> <li class="dropdown" id="header_task_bar"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-tasks"></i> <span class="badge">5</span> </a> <ul class="dropdown-menu extended tasks"> <li> <p>You have 12 pending tasks</p> </li> <li><a href="#"> <span class="task"> <span class="desc">New release v1.2</span> <span class="percent">30%</span> </span> <span class="progress progress-success "> <span style="width: 30%;" class="bar"></span> </span> </a> </li> <li><a href="#"> <span class="task"> <span class="desc">Application deployment</span> <span class="percent">65%</span> </span> <span class="progress progress-danger progress-striped active"> <span style="width: 65%;" class="bar"></span> </span> </a> </li> <li><a href="#"> <span class="task"> <span class="desc">Mobile app release</span> <span class="percent">98%</span> </span> <span class="progress progress-success"> <span style="width: 98%;" class="bar"></span> </span> </a> </li> <li><a href="#"> <span class="task"> <span class="desc">Database migration</span> <span class="percent">10%</span> </span> <span class="progress progress-warning progress-striped"> <span style="width: 10%;" class="bar"></span> </span> </a> </li> <li><a href="#"> <span class="task"> <span class="desc">Web server upgrade</span> <span class="percent">58%</span> </span> <span class="progress progress-info"> <span style="width: 58%;" class="bar"></span> </span> </a> </li> <li><a href="#"> <span class="task"> <span class="desc">Mobile development</span> <span class="percent">85%</span> </span> <span class="progress progress-success"> <span style="width: 85%;" class="bar"></span> </span> </a> </li> <li class="external"><a href="#">See all tasks <i class="m-icon-swapright"></i> </a> </li> </ul> </li> <!-- END TODO DROPDOWN --> <!-- BEGIN USER LOGIN DROPDOWN --> <li class="dropdown user"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img alt="" src="../assets/img/avatar1_small.jpg" /> <span class="username"></span> <i class="icon-angle-down"></i> </a> <ul class="dropdown-menu"> <li><a href="extra_profile.html"><i class="icon-user"></i> 我的信息</a> </li> <li><a href="calendar.html"><i class="icon-calendar"></i> 我的日历</a> </li> <li><a href="#"><i class="icon-tasks"></i> 我的任务</a> </li> <li class="divider"></li> <li><a href="hotel.jsp"><i class="icon-key"></i> 退出登录</a> </li> </ul> </li> <!-- END USER LOGIN DROPDOWN --> </ul> <!-- END TOP NAVIGATION MENU --> </div> </div> <!-- END TOP NAVIGATION BAR --> </div> <!-- END HEADER --> <!-- BEGIN CONTAINER --> <div class="page-container row-fluid"> <!-- BEGIN SIDEBAR --> <div class="page-sidebar nav-collapse collapse"> <!-- BEGIN SIDEBAR MENU --> <ul> <li> <!-- BEGIN SIDEBAR TOGGLER BUTTON --> <div class="sidebar-toggler hidden-phone"></div> <!-- BEGIN SIDEBAR TOGGLER BUTTON --> </li> <li> <!-- BEGIN RESPONSIVE QUICK SEARCH FORM --> <form class="sidebar-search"> <div class="input-box"> <a href="javascript:;" class="remove"></a> <input type="text" placeholder="查询. . ." /> <input type="button" class="submit" value=" " /> </div> </form> <!-- END RESPONSIVE QUICK SEARCH FORM --> </li> <li class="has-sub "> <a href="/hotel/index.jsp"> <i class="icon-home"></i> <span class="title">首页</span> <span class="selected"></span> </a> </li> <li class="start active"> <a href="/hotel/stage/stage.jsp"> <i class="icon-bookmark-empty"></i> <span class="title">前台</span> <span class="arrow "></span> </a> <ul class="sub"> <li><a href="/hotel/stage/charge/charge_info.jsp">入住开单</a></li> <li><a href="/hotel/jie">入住详情</a></li> <li><a href="ordershow.action">预定开单</a></li> <li><a href="/hotel/orderfood/food!food.action">订餐服务</a></li> <li><a href="Vip.action">会员管理</a></li> </ul> </li> <li class="has-sub "> <a href="/hotel/restaurant/catering.jsp"> <i class="icon-th-list"></i> <span class="title">餐饮部</span> <span class="arrow "></span> </a> <ul class="sub"> <li><a href="/hotel/restaurant/basic/basic.jsp">餐饮信息</a> </li> <li><a href="/hotel/restaurant/enter/enter!show.action">采购入库</a> </li> <li><a href="/hotel/restaurant/stock/stock.jsp">库存盘点</a> </li> <li><a href="/hotel/restaurant/purchase/purchase!show.action">取材出库</a> </li> </ul> </li> <li class="has-sub "> <a href="/hotel/room/room.jsp"> <i class="icon-star-empty"></i> <span class="title">客房部</span> <span class="arrow "></span> </a> <ul class="sub"> <li><a href="/hotel/room/basic/basic.jsp">基本设置</a> </li> <li><a href="/hotel/room/roommanage/roommanage.jsp">客房管理</a> </li> <li><a href="/hotel/room/damage/damage!show.action">损坏设备统计</a> </li> </ul> </li> <li class="has-sub "> <a href="javascript:;"> <i class="icon-table"></i> <span class="title">统计</span> <span class="arrow "></span> </a> <ul class="sub"> <li ><a href="statistic/room_pie.jsp">房间总体情况</a></li> <li ><a href="statistic/room_stack.jsp">各类型房间情况</a></li> </ul> </li> <li class="has-sub "> <a href="javascript:;"> <i class="icon-briefcase"></i> <span class="title">部门档案</span> <span class="arrow "></span> </a> <ul class="sub"> <li ><a href="department/deptc!show.action">部门分类</a></li> <li ><a href="department/dept!show.action">部门信息</a></li> <li ><a href="department/staff!show.action">人员档案</a></li> </ul> </li> <li class="has-sub "> <a href="javascript:;"> <i class="icon-map-marker"></i> <span class="title">地图</span> <span class="arrow "></span> </a> <ul class="sub"> <li><a></a></li> </ul> </li> <li class="has-sub "> <a href="javascript:;"> <i class="icon-map-marker"></i> <span class="title">公告</span> <span class="arrow "></span> </a> <ul class="sub"> <li><a></a></li> </ul> </li> <li class="has-sub "> <a href="javascript:;"> <i class="icon-briefcase"></i> <span class="title">其他</span> <span class="arrow "></span> </a> <ul class="sub"> <li><a href="profile/profile.jsp">我的信息</a></li> <li><a href="profile/calendar.jsp">我的日程</a></li> <li><a>我的任务</a></li> </ul> </li> <li class=""> <a href="hotel.jsp"> <i class="icon-user"></i> <span class="title">退出登陆</span> </a> </li> </ul> <!-- END SIDEBAR MENU --> </div> <!-- END SIDEBAR --> <div class="page-content"> <!-- BEGIN PAGE CONTAINER--> <div class="container-fluid"> <!-- BEGIN PAGE HEADER--> <div class="row-fluid"> <div class="span12"> <!-- BEGIN STYLE CUSTOMIZER --> <div class="color-panel hidden-phone"> <div class="color-mode-icons icon-color"></div> <div class="color-mode-icons icon-color-close"></div> <br> <div class="color-mode"> <p>主题 颜色</p> <ul class="inline"> <li class="color-black current color-default" data-style="default"></li> <li class="color-blue" data-style="blue"></li> <li class="color-brown" data-style="brown"></li> <li class="color-purple" data-style="purple"></li> <li class="color-white color-light" data-style="light"></li> </ul> <label class="hidden-phone"> <input type="checkbox" class="header" checked value="" /> <span class="color-mode-label">固定标题</span> </label> </div> </div> <!-- END BEGIN STYLE CUSTOMIZER --> <!-- BEGIN PAGE TITLE & BREADCRUMB--> <h3 class="page-title"> 前台<small>请选择内容进行操作:</small> </h3> <ul class="breadcrumb"> <li><i class="icon-home"></i> <a href="/hotel/index.jsp">首页</a> <i class="icon-angle-right"></i> </li> <li><a href="javascript:;">前台</a> </li> </ul> <!-- END PAGE TITLE & BREADCRUMB--> </div> </div> <!-- END PAGE HEADER--> <!-- BEGIN PAGE CONTENT--> <div class="row-fluid"> <div class="span12"> <div id="dashboard"> <!-- BEGIN DASHBOARD STATS --> <div class="row-fluid"> <div class="span2 responsive" data-tablet="span6" data-desktop="span2"> <div class="dashboard-stat yellow"> <div class="visual"> <img src="../assets/img/icon/resize_png_new4.png"> </div> <div class="details"> <div class="number">入住开单</div> <div class="desc"></div> </div> <a class="more" href="/hotel/stage/charge/charge_info.jsp"> 点击浏览更多 <i class="m-icon-swapright m-icon-white"></i> </a> </div> </div> <div class="span2 responsive" data-tablet="span6" data-desktop="span2"> <div class="dashboard-stat green"> <div class="visual"> <img src="../assets/img/icon/33216.png"> </div> <div class="details"> <div class="number">入住详情</div> <div class="desc"></div> </div> <a class="more" href="/hotel/jie"> 点击浏览更多 <i class="m-icon-swapright m-icon-white"></i> </a> </div> </div> <div class="span2 responsive" data-tablet="span6 fix-offset" data-desktop="span2"> <div class="dashboard-stat purple"> <div class="visual"> <img src="../assets/img/icon/resize_png_new7.png"> </div> <div class="details"> <div class="number">预定开单</div> <div class="desc"></div> </div> <a class="more" href="/stage/charge/ordershow.action"> 点击浏览更多 <i class="m-icon-swapright m-icon-white"></i> </a> </div> </div> <div class="span2 responsive" data-tablet="span6 fix-offset" data-desktop="span2"> <div class="dashboard-stat green"> <div class="visual"> <img src="../assets/img/icon/548346.png"> </div> <div class="details"> <div class="number">订餐服务</div> <div class="desc"></div> </div> <a class="more" href="/hotel/orderfood/food!food.action"> 点击浏览更多 <i class="m-icon-swapright m-icon-white"></i> </a> </div> </div> <div class="span2 responsive" data-tablet="span6 fix-offset" data-desktop="span2"> <div class="dashboard-stat yellow"> <div class="visual"> <img src="../assets/img/icon/resize_png_new6.png"> </div> <div class="details"> <div class="number">会员管理</div> <div class="desc"></div> </div> <a class="more" href="Vip.action"> 点击浏览更多 <i class="m-icon-swapright m-icon-white"></i> </a> </div> </div> </div> </div> <!-- END DASHBOARD STATS --> </div> </div> </div> <!-- END PAGE CONTENT--> </div> <!-- END PAGE CONTAINER--> </div> <!-- END PAGE --> <!-- BEGIN FOOTER --> <div class="footer"> 2014 &copy; Ttuo-Hotel | by ToTeam <div class="span pull-right"> <span class="go-top"><i class="icon-angle-up"></i> </span> </div> </div> <!-- END FOOTER --> <!-- BEGIN JAVASCRIPTS --> <!-- Load javascripts at bottom, this will reduce page load time --> <script src="../assets/js/jquery-1.8.3.min.js"></script> <script src="../assets/breakpoints/breakpoints.js"></script> <script src="../assets/jquery-slimscroll/jquery-ui-1.9.2.custom.min.js"></script> <script src="../assets/bootstrap/js/bootstrap.min.js"></script> <script src="../assets/js/jquery.blockui.js"></script> <script src="../assets/js/jquery.cookie.js"></script> <script src="../assets/fullcalendar/fullcalendar/fullcalendar.min.js"></script> <script type="text/javascript" src="../assets/uniform/jquery.uniform.min.js"></script> <script type="text/javascript" src="../assets/chosen-bootstrap/chosen/chosen.jquery.min.js"></script> <!-- ie8 fixes --> <!--[if lt IE 9]> <script src="assets/js/excanvas.js"></script> <script src="assets/js/respond.js"></script> <![endif]--> <script src="../assets/js/app.js"></script> <script> jQuery(document).ready(function() { // initiate layout and plugins App.setPage('calendar'); App.init(); }); </script> <!-- END JAVASCRIPTS --> </body> <!-- END BODY --> </html> ``` ``` ``` java文件: ``` package com.hotel.action.stage; import java.util.ArrayList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.hotel.entity.stage.Orderlist; import com.hotel.entity.stage.RoomAll; import com.hotel.service.stage.OrderService; import com.hotel.utils.Encode; import com.opensymphony.xwork2.ActionSupport; @Controller("orderAction") @Scope("prototype") public class OrderAction extends ActionSupport { @Autowired @Qualifier("orderService") private OrderService os; private Orderlist orderlist = new Orderlist(); private ArrayList<Orderlist> list1 = new ArrayList<Orderlist>(); ArrayList<RoomAll> list2 = new ArrayList<RoomAll>(); private String idds; private int id; private String number; public String save() { orderlist.setName(Encode.toutf8(orderlist.getName())); os.save(orderlist, idds); return "order1"; } public String show() { list1 = os.show(); return "show"; } public String getone() { list2 = os.getone(number); return "get1"; } public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } public int getId() { return id; } public void setId(int id) { this.id = id; } public Orderlist getOrderlist() { return orderlist; } public ArrayList<Orderlist> getList1() { return list1; } public void setList1(ArrayList<Orderlist> list1) { this.list1 = list1; } public void setOrderlist(Orderlist orderlist) { this.orderlist = orderlist; } public String getIdds() { return idds; } public void setIdds(String idds) { this.idds = idds; } public ArrayList<RoomAll> getList2() { return list2; } public void setList2(ArrayList<RoomAll> list2) { this.list2 = list2; } } ``` 程序结构: ![图片说明](https://img-ask.csdn.net/upload/201606/06/1465185272_322367.png) jsp文件位置: ![图片说明](https://img-ask.csdn.net/upload/201606/06/1465185442_652255.png) jar包: ![图片说明](https://img-ask.csdn.net/upload/201606/06/1465185533_60648.png) ![图片说明](https://img-ask.csdn.net/upload/201606/06/1465185546_855720.png)
spark 出现很严重的数据倾斜,跑批时间很长,有时候会报错
目前在开发一个统计指标的脚本,跑批出现了严重的数据倾斜, ![图片说明](https://img-ask.csdn.net/upload/201902/21/1550735821_877072.jpg) 有时候报java.lang.IllegalArgumentException: Size exceeds Integer.MAX_VALUE,但是分析sql里用到的key,在之前的商户号作为key的时候,差别也是最多的几百条,最少的几条,但是几百条的居多,以商户号和维度类别作为key的时候,分布如下 key条数正数5个 +---+---------------+--------------+ | 条数| merchant_id|statistic_type| +---+---------------+--------------+ | 5| null| 5| | 4|822100047220249| 5| | 4|303300048120004| 5| | 4|303450053310001| 5| | 4|303650058130002| 5| +---+---------------+--------------+ key条数倒数5个 +---+---------------+--------------+ | 条数| merchant_id|statistic_type| +---+---------------+--------------+ | 1|822100051310533| 6| | 1|822100059630118| 6| | 1|822100052512420| 6| | 1|822100055411357| 6| | 1|822100058124973| 6| +---+---------------+--------------+ ,可是再task里,大部分都平均,就有某一个task数据量是其他的1000倍左右,看起来不像我group by的key分布不均导致的,请教各位大神,这是什么原因导致的?
Lost Cows
Problem Description N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood 'watering hole' and drank a few too many beers before dinner. When it was time to line up for their evening meal, they did not line up in the required ascending numerical order of their brands. Regrettably, FJ does not have a way to sort them. Furthermore, he's not very good at observing problems. Instead of writing down each cow's brand, he determined a rather silly statistic: For each cow in line, he knows the number of cows that precede that cow in line that do, in fact, have smaller brands than that cow. Given this data, tell FJ the exact ordering of the cows. Input * Line 1: A single integer, N * Lines 2..N: These N-1 lines describe the number of cows that precede a given cow in line and have brands smaller than that cow. Of course, no cows precede the first cow in line, so she is not listed. Line 2 of the input describes the number of preceding cows whose brands are smaller than the cow in slot #2; line 3 describes the number of preceding cows whose brands are smaller than the cow in slot #3; and so on. Output * Lines 1..N: Each of the N lines of output tells the brand of a cow in line. Line #1 of the output tells the brand of the first cow in line; line 2 tells the brand of the second cow; and so on. Sample Input 5 1 2 1 0 Sample Output 2 4 5 3 1
Free DIY Tour 编写程序来实现
Problem Description Weiwei is a software engineer of ShiningSoft. He has just excellently fulfilled a software project with his fellow workers. His boss is so satisfied with their job that he decide to provide them a free tour around the world. It's a good chance to relax themselves. To most of them, it's the first time to go abroad so they decide to make a collective tour. The tour company shows them a new kind of tour circuit - DIY circuit. Each circuit contains some cities which can be selected by tourists themselves. According to the company's statistic, each city has its own interesting point. For instance, Paris has its interesting point of 90, New York has its interesting point of 70, ect. Not any two cities in the world have straight flight so the tour company provide a map to tell its tourists whether they can got a straight flight between any two cities on the map. In order to fly back, the company has made it impossible to make a circle-flight on the half way, using the cities on the map. That is, they marked each city on the map with one number, a city with higher number has no straight flight to a city with lower number. Note: Weiwei always starts from Hangzhou(in this problem, we assume Hangzhou is always the first city and also the last city, so we mark Hangzhou both 1 and N+1), and its interesting point is always 0. Now as the leader of the team, Weiwei wants to make a tour as interesting as possible. If you were Weiwei, how did you DIY it? Input The input will contain several cases. The first line is an integer T which suggests the number of cases. Then T cases follows. Each case will begin with an integer N(2 ≤ N ≤ 100) which is the number of cities on the map. Then N integers follows, representing the interesting point list of the cities. And then it is an integer M followed by M pairs of integers [Ai, Bi] (1 ≤ i ≤ M). Each pair of [Ai, Bi] indicates that a straight flight is available from City Ai to City Bi. Output For each case, your task is to output the maximal summation of interesting points Weiwei and his fellow workers can get through optimal DIYing and the optimal circuit. The format is as the sample. You may assume that there is only one optimal circuit. Output a blank line between two cases. Sample Input 2 3 0 70 90 4 1 2 1 3 2 4 3 4 3 0 90 70 4 1 2 1 3 2 4 3 4 Sample Output CASE 1# points : 90 circuit : 1->3->1 CASE 2# points : 90 circuit : 1->2->1
R语言错误“外接函数调用时不能有NA/NaN/Inf(arg1)”
从《Modern applied statistic with S》(pp216-217)中看到一种不需要精确起始参数,即可进行非线性函数模型拟合的方法。我在R语言运行时出现错误,请教高手指点解决方法,运行脚本及错误如下: > cl<-data.frame( + Area=c(521.5, 689.78, 1284.71, 2018.8, 2560.46, 524.91, 989.05, 1646.32, 2239.65, 2972.96, 478.54, 875.52, 1432.5, 2144.74, 2629.2), + Retention=c(95.3, 87.18, 44.94, 26.36, 18.12, 84.68, 37.24, 33.04, 23.46, 9.72, 97.92, 71.44, 44.52, 24.44, 15.26) + ) > negexp <- selfStart(model = ~ exp(b0*exp(b1*x^th)), + initial = negexp.SSival, parameters = c("b0", "b1", "th"), + template = function(x, b0, b1, th) {}) > wtloss.ss <- nls(Retention ~ negexp(Area, B0, B1, theta), + data = cl, trace = T) B0 B1 theta 4.208763 144.205455 1035.324595 Error in qr.default(.swts * attr(rhs, "gradient")) : 外接函数调用时不能有NA/NaN/Inf(arg1)
Stats
As with most team sports, certain statistics can be accumulated during play. For this problem, you are to write a program that reads play descriptions for a volleyball game and produces a report of player and team statistics for one of the teams. Your program will read in a series of input lines that describe a "play" of a volleyball game. Table 1 lists the types of plays that your program will use for input. Key Play Play Description C CHECKIN An indication of the beginning of a new game. The beginning of any game will contain one "CHECKIN" play that lists all the players in the game from one team. H HIT A hit that was successfully defended by the opponent. K KILL A hit that was not successfully defended by the opponent. E ERR An erroneous hit that went into the net or out of bounds. B BLOCK A successful defense of a hit at the net. D DIG A successful defense of a hit behind the net. R REPORT Command to your program to generate a report. After generating a report, your program should discard all collected play records and begin processing anew on the rest of the input. Each play (except CHECKIN and REPORT) has exactly one 2-digit player number associated with it. Player digit numbers are limited to 0 through 5 allowing referees to indicate player numbers using 0 to 5 fingers off of each hand. Your program is to compute the following statistics for each player that has participated in any game as well as statistics for the entire team. Descriptions of all statistics that your program is to compute from the collected plays are listed in Table 2. Label Formula Description Sample Hit% (sum(KILL)-sum(ERR)) / (sum(KILL)+sum(ERR)+sum(HIT)) Hitting percentage 0.461 KPG sum(KILL) / #Games Kills per game 5.613 BPG sum(BLOCK) / #Games Blocks per game 3.100 DPG sum(DIG) / #Games Digs per game 2.050 Input Input to your program will consist of a series of input lines each with exactly one play. Column 1 will contain one of the play keys from Table 1. If the play is a REPORT, there is no additional input on the line. If the play is a CHECKIN, there will be a blank in column 2, followed by a single integer (06 <= NP <= 15) in columns 3 and 4 which indicates the number of players participating in the game. The remainder of the line contains a series of 2-digit (including leading zeros) player numbers (each with exactly 1 preceding blank) indicating the players who participated in the game. You can be confident that the CHECKIN is accurate and that no player will be mentioned in any play in that game who does not appear on the preceding CHECKIN line. For the plays HIT, KILL, ERR, BLOCK, and DIG, there will be blank in column 2 and exactly one player number (including leading a leading zero as required) in columns 3 and 4. Output Each time your program reads in a "REPORT" play, you should print a report with the following format. The first two lines of each report must contain the following strings each starting in column 1. Player Hit Pct KPG BPG DPG ----------------------------------------- Your program should then print, for each player who has played in at least one game, a single line in the following format: 55 s0.000 99.999 99.999 99.999 with the lines in ascending order of player number. In the player report line, s is the sign of the hitting percentages and is '+' if the hitting percentage >= 0.000 and is '-' otherwise. Note the hitting percentage should be 0.000 if the user has not made any hits, kills, nor errors. After printing a report for each player, your program should print a single line containing the team statistics in the following format. team s0.000 99.999 99.999 99.999 You can be confident that no statistic's magnitude will exceed 99.999 in value. After printing the team statistics, your program should print exactly one blank line. Sample Input C 6 13 04 40 14 15 22 D 04 B 04 B 04 K 14 B 14 B 14 K 14 K 14 K 14 B 14 D 14 D 14 B 14 H 15 D 15 E 15 H 15 H 15 H 15 H 15 E 15 B 22 B 22 K 22 E 22 H 22 K 22 D 40 D 40 R Sample Output Player Hit Pct KPG BPG DPG ----------------------------------------- 04 +0.000 0.000 2.000 1.000 13 +0.000 0.000 0.000 0.000 14 +1.000 4.000 4.000 2.000 15 -0.286 0.000 0.000 1.000 22 +0.250 2.000 2.000 0.000 40 +0.000 0.000 0.000 2.000 team +0.200 6.000 8.000 6.000
模拟登录猎聘网,能取到登录后的HTML源码,但是跳到liepin的时候还是显示登录框
``` HttpHelper hh = new HttpHelper(); HttpResult hr = hh.GetHtml(new HttpItem() { Method = "POST", URL = "http://www.liepin.com/user/ajaxlogin/", PostDataType = PostDataType.String, Postdata = "isMd5=1&layer_from=wwwindex_rightbox_new&user_login=13345453073%40qq.com&user_pwd=a7c53b22f15684ec246921116a2f8faf&chk_remember_pwd=on", ContentType = "application/x-www-form-urlencoded", }); Literal1.Text = hr.Html; HttpResult hr2 = hh.GetHtml(new HttpItem() { Method = "GET", URL = "http://statistic.liepin.com/statisticPlatform/tLog?page_id=&url=http%3A%2F%2Fwww.liepin.com%2F&resolution=1920X1080&uuid=1444489384702.90&sessionId=1446362465522.16&if_mscid=00000000&il_mscid=00000000&ef_mscid=00000000&el_mscid=00000000&v_stay_time=83507&type=v&user_id=20817384&user_kind=0&session_seq=3&uv_seq=3&t=1446362572121", }); Literal1.Text += "<hr />" + hr2.Html; HttpResult hr3 = hh.GetHtml(new HttpItem() { Method = "GET", URL = "http://statistic.liepin.com/statVisit.do?site=1&userId=20817384&userKind=0&url=http%3A%2F%2Fwww.liepin.com%2F&resolution=1920x1080&h=15&m=22&s=52&cookie=1&ref=&puuid=14463624886176532258288&stay_time=84000&rand=0.057066346751526", }); Literal1.Text += "<hr />" + hr3.Html; HttpResult hr4 = hh.GetHtml(new HttpItem() { Method = "GET", URL = "http://c.liepin.com/?time=1446362571809", Cookie = "__uuid=1444489384702.90; _uuid=5246D851FFA8420C798600EBFAC2AB4A; gr_user_id=88684461-82ec-4a67-96dc-b9e120daaecc; JSESSIONID=4DD6C93314B2978337B9767477DC099C; _ltu=%7B%22level%22%3A1%2C%22goldcard%22%3Afalse%2C%22id%22%3A%2220817384%22%2C%22v%22%3A%221.1%22%7D; rand=89c3e5a340a877f518d751403671bee5; __tlog=1446362465522.16%7C00000000%7C00000000%7C00000000%7C00000000; __session_seq=3; __uv_seq=3; Hm_lvt_a2647413544f5a04f00da7eee0d5e200=1445584941,1446198379,1446207568,1446362466; Hm_lpvt_a2647413544f5a04f00da7eee0d5e200=1446362489; _mscid=00000000; _lpcdn=s%2C1%7Ccore.pc%2C1%7Ca.pc%2C1%7Cwww.pc%2C1%7Cjob.pc%2C1%7Ccompany.pc%2C1%7Cit.pc%2C1%7Cc.pc%2C1%7Clpt.pc%2C1%7Ch.pc%2C1%7Carticle.pc%2C1%7Cats.pc%2C1%7Ccampus.pc%2C1%7Ccity.pc%2C1%7Cclt.pc%2C1; gr_session_id=317eeb56-bd19-49d1-b83f-6e9701cf3a1b; lt_auth=uugIMyQCnFn6tnLb32Nb4qdJ2oiqVGrA9nwMhB9RgYC0DaW04PziSwqArbkDxBMhxEwkcMULNbT4%0D%0ANu78zHRL7kAT%0D%0A; autologin=true; user_login=164423073%40qq.com; user_name=%E6%9D%A8%E6%B6%9B; user_kind=0; user_id=20817384; user_photo=55557f3b28ee44a8919620ce01a.gif%3F0.9157210058157577; user_vip=0", }); Literal1.Text += "<hr />" + hr4.Html; // Response.Redirect("http://c.liepin.com");这个跳转到c.liepin.com后还是要提示登录 Response.Write(hr4.Html); //这个可以输出登录成功后的页面HTML代码 Response.End(); ``` 以上是相关的ASP.NET代码,如果是单纯获取到登录成功后的HTML页面的源代码是可以了。。但我想要的效果是用户名和密码在我的网站上输入,点击登录后跳转到猎聘网的用户中心,即网址从http://localhost:67465跳到http://c.liepin.com 后还是登录的状态的。。。请问这个可以搞吗?
汇编程序的结构体定义在后文中调用一直报错
``` DATA SEGMENT STUDENT STRUCT XNAME DB 14 DUP('$') XCLASS DB 14 DUP('$') NUM DW 0 SCORE DW 0 STUDENT ENDS STU_SIZE EQU 26 STU_DB STUDENT 100 DUP(<'X','Y',1,100>) STU_NUM DB 0 ; STU_SEQ DB 100 DUP('$') ; MASSAGE DB 'Student Management System',0dh,0ah DB '0.Exit',0dh,0ah DB '1.Add New Student',0dh,0ah DB '2.Sort by Number',0dh,0ah DB '3.Sort by Score',0dh,0ah DB '4.Print Average',0dh,0ah DB '5.Print Statistic',0dh,0ah DB '$' MSG1 DB 'Name:','$' MSG2 DB 'Class:','$' MSG3 DB 'Number','$' MSG4 DB 'Score','$' m_str_l DB 0dh,0ah,'[length<14byte]','$' m_num_l DB 0dh,0ah,'[value<100]','$' TABLE DW CASE0,CASE1,CASE2,CASE3,CASE4 BUFLEN DB 100 ; ACLEN DB ? ; BUF DB 100 DUP(0),'$' ; BUFEND EQU OFFSET BUF+100 ; N_6 DB 0 N67 DB 0 N78 DB 0 N89 DB 0 N9_ DB 0 M_6 DB '~60','$' M67 DB '60~70:','$' M78 DB '70~80:','$' M89 DB '80~90:','$' M9_ DB '90~100:','$' DATA ENDS STACK SEGMENT STACK DB 200H DUP(?) STACK ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA,SS:STACK START: PS MACRO STR ; PUSH AX PUSH DX LEA DX,STR MOV AH,9 INT 21H POP DX POP AX ENDM PC MACRO CH ; PUSH AX PUSH DX MOV DL,CH MOV AH,2 INT 21H POP DX POP AX ENDM ENDL MACRO ; PC 0DH PC 0AH ENDM SCS MACRO LEA DX,BUFLEN MOV AH,10 ; INT 21H ENDM SCC MACRO MOV AH,1 INT 21H ENDM MEMCPY MACRO DEST,SRC,LEN PUSH AX PUSH CX PUSH DI PUSH SI MOV AX,DS MOV ES,AX MOV CX,WORD PTR LEN LEA SI,SRC LEA DI,DEST CLD REP MOVSB POP SI POP DI POP CX POP AX ENDM GET_STU MACRO PUSH AX PUSH CX LEA BX,STU_DB MOV CL,5 SHL AX,CL ADD BX,AX POP CX POP AX ENDM MOV AX,DATA MOV DS,AX MASSAG: ENDL PS MASSAGE PC ':' SCC ENDL MOV AH,0 MOV BX,AX SUB BX,'0' CMP BX,5 JBE CASE0TO5 JMP MASSAG CASE0TO5: SHL BX,1 JMP TABLE[BX] CASE0: MOV AH,4CH INT 21H CASE1: CALL INS_STU JMP MASSAG CASE2: CALL NUM_SORT CALL PRINT_SEQ JMP MASSAG CASE3: CALL SCORE_SORT CALL PRINT_SEQ JMP MASSAG CASE4: CALL GET_SAT JMP MASSAG INS_STU PROC NEAR PUSH AX PUSH BX PUSH CX PUSH DX MOV AX,WORD PTR STU_NUM LEA BX,STU_DB MOV CL,5 SHL AX,CL ADD BX,AX INPUT_NAME: PS m_str_l PS MSG1 SCS CMP ACLEN,14 JAE INPUT_NAME MEMCPY [BX].XNAME,BUF,ACLEN ENDL INPUT_CLASS: PS m_str_l PS MSG2 SCS CMP ACLEN,14 JAE INPUT_CLASS MEMCPY [BX].XCLASS,BUF,ACLEN ENDL INPUT_NUM: PS m_str_l PS MSG3 SCS CALL STR_TO_NUM MOV [BX].NUM,AX ENDL INPUT_SCORE: PS m_str_l PS MSG4 SCS CALL STR_TO_NUM MOV [BX].SOCRE,AX ENDL INC STU_NUM POP DX POP CX POP BX POP AX RET INS_STU ENDP PNUM PROC NEAR PUSH AX PUSH BX PUSH CX PUSH DX MOV BX,BUFEND DEC BX MOV WORD PTR [BX],'$' OUTLOOP: OR AX,AX JZ OUTLOOPFIN MOV DX,0 MOV CX,10 DIV CX ADD DL,'0' DEC BX MOV BYTE PTR [BX],DL JMP OUTLOOP OUTLOOPFIN: CMP BX,OFFSET BUFEND-1 JNE PRINT_NUM DEC BX MOV BYTE PTR [BX],'0' PRINT_NUM: MOV DX,BX MOV AH,9 INT 21H POP DX POP CX POP BX POP AX RET PNUM ENDP PSCORE PROC NEAR PUSH AX PUSH BX PUSH CX PUSH DX MOV BX,BUFEND DEC BX MOV BYTE PTR [BX],'$' OUTLOOP1: OR AX,AX JZ OUTLOOP1FIN MOV DX,0 MOV CX,10 DIV CX ADD DL,'0' DEC BX MOV BYTE PTR [BX],DL JMP OUTLOOP1 OUTLOOP1FIN: CMP BX,OFFSET BUFEND-1 JNE PRINT_SCORE DEC BX MOV BYTE PTR [BX],'0' PRINT_SCORE: MOV DX,BX MOV AH,9 INT 21H POP DX POP CX POP BX POP AX RET PSCORE ENDP PSTU PROC NEAR PUSH AX PUSH BX PUSH CX GET_STU PS MSG1 PS [BX].XNAME PC ' ' PS MSG2 PS [BX].CLASS PC ' ' PS MSG3 MOV AX,[BX].NUM CALL PNUM PC ' ' PS MSG4 MOV AX,[BX].SCORE CALL PSCORE ENDL POP CX POP BX POP AX RET PSTU ENDP STR_TO_NUM PROC FAR PUSH BX PUSH CX PUSH SI MOV AX,0 MOV CX,WORD PTR ACLEN LEA SI,BUF GET_NUM: MOV BL,10 MUL BL MOV BX,WORD PTR [SI] ADD AX,BX SUB AX,'0' INC SI LOOP GET_NUM POP SI POP CX POP BX RET STR_TO_NUM ENDP GET_AVERAGE PROC NEAR PUSH AX PUSH BX PUSH CX PUSH DX MOV CX,0 MOV AX,0 MOV DX,0 REPEATR: CMP CL,STU_NUM JAE OUT_PUT PUSH AX PUSH CX MOV AX,CX GET_STU POP CX POP AX ADD AX,[BX].SOCRE ADC DX,0 INC CL JMP REPEATR OUT_PUT: MOV CL,STU_NUM MOV CH,0 OR CL,0 JNZ END_AVE INC CX END_AVE: DIV CX ; ENDL CALL PSCORE ENDL POP DX POP CX POP BX POP AX RET GET_AVERAGE ENDP GET_SAT PROC NEAR PUSH AX PUSH BX PUSH CX MOV N_6,0 MOV N67,0 MOV N78,0 MOV N89,0 MOV N9_,0 MOV CX,0 SAT_IN: CMP CL,STU_NUM JAE SAT_OUT PUSH AX PUSH CX MOV AX,CX GET_STU POP CX POP AX INC CL MOV AX,[BX].SOCRE CMP AX,60 JB I_6 CMP AX,70 JB I67 CMP AX,80 JB I78 CMP AX,90 JB I89 INC N9_ JMP SAT_IN I_6: INC N_6 JMP SAT_IN I67: INC N67 JMP SAT_IN I78: INC N78 JMP SAT_IN I89: INC N89 JMP SAT_IN SAT_OUT: MOV AH,0 PS M_6 MOV AL,N_6 CALL PNUM ENDL PS M67 MOV AL,N67 CALL PNUM ENDL PS M78 MOV AL,N78 CALL PNUM ENDL PS M89 MOV AL,N89 CALL PNUM ENDL PS M9_ MOV AL,N9_ CALL PNUM ENDL POP CX POP BX POP AX RET GET_SAT ENDP PRINT_SEQ PROC NEAR PUSH AX PUSH BX LEA BX,STU_SEQ PRINT_SEQ_START: MOV AL,[BX] CMP AL,'$' JZ PRINT_SEQ_END MOV AH,0 CALL PSTU INC BX JMP PRINT_SEQ_START PRINT_SEQ_END: POP BX POP AX RET PRINT_SEQ ENDP NUM_SORT PROC NEAR PUSH BX PUSH DX MOV DL,0 LEA BX,STU_SEQ SORT_START: CMP DL,STU_NUM JAE SORT_END MOV BYTE PTR [BX],DL INC BX INC DL JMP SORT_START SORT_END: MOV BYTE PTR [BX],'$' CMP STU_NUM,1 JLE NON_NUM MOV CL,STU_NUM DEC CL MOV CH,0 LOOP1: MOV DI,CX LEA BX,STU_SEQ LOOP2: MOV AL,BYTE PTR [BX] MOV AH,0 PUSH BX GET_STU MOV DX,[BX].NUM POP BX MOV AL,BYTE PTR [BX+1] PUSH BX GET_STU CMP DX,BX.[NUM] POP BX JAE CONTI MOV AL,BYTE PTR [BX] XCHG AL,BYTE PTR [BX+1] MOV BYTE PTR [BX],AL CONTI: INC BX LOOP LOOP2 MOV CX,DI LOOP LOOP1 NON_NUM: POP DX POP BX RET NUM_SORT ENDP SCORE_SORT PROC NEAR PUSH BX PUSH DX MOV DL,0 LEA BX,STU_SEQ SCORE_START: CMP DL,STU_NUM JAE SCORE_END MOV BYTE PTR [BX],DL INC BX INC DL JMP SCORE_START SCORE_END: MOV BYTE PTR [BX],'$' CMP STU_NUM,1 JLE SNON_NUM MOV CL,STU_NUM DEC CL MOV CH,0 SLOOP1: MOV DI,CX LEA BX,STU_SEQ SLOOP2: MOV AL,BYTE PTR [BX] MOV AH,0 PUSH BX GET_STU MOV DX,[BX].SCORE POP BX MOV AL,BYTE PTR [BX+1] PUSH BX GET_STU CMP DX,BX.[SCORE] POP BX JAE SCONTI MOV AL,BYTE PTR [BX] XCHG AL,BYTE PTR [BX+1] MOV BYTE PTR [BX],AL SCONTI: INC BX LOOP SLOOP2 MOV CX,DI LOOP SLOOP1 SNON_NUM: POP DX POP BX RET SCORE_SORT ENDP CODE ENDS END START ``` 程序在RADASM和MASMPLUS上跑出来的反馈的错误都是一样的: E:\MASM5\huibian.asm(179) : error A2006: undefined symbol : XNAME MEMCPY(9): Macro Called From E:\MASM5\huibian.asm(179): Main Line Code E:\MASM5\huibian.asm(188) : error A2006: undefined symbol : XCLASS MEMCPY(9): Macro Called From E:\MASM5\huibian.asm(188): Main Line Code E:\MASM5\huibian.asm(196) : error A2006: undefined symbol : NUM E:\MASM5\huibian.asm(204) : error A2006: undefined symbol : SOCRE E:\MASM5\huibian.asm(300) : error A2006: undefined symbol : XNAME PS(3): Macro Called From E:\MASM5\huibian.asm(300): Main Line Code E:\MASM5\huibian.asm(303) : error A2006: undefined symbol : CLASS PS(3): Macro Called From E:\MASM5\huibian.asm(303): Main Line Code E:\MASM5\huibian.asm(306) : error A2006: undefined symbol : NUM E:\MASM5\huibian.asm(310) : error A2006: undefined symbol : SCORE E:\MASM5\huibian.asm(362) : error A2006: undefined symbol : SOCRE E:\MASM5\huibian.asm(410) : error A2006: undefined symbol : SOCRE E:\MASM5\huibian.asm(527) : error A2006: undefined symbol : NUM E:\MASM5\huibian.asm(533) : error A2006: undefined symbol : NUM E:\MASM5\huibian.asm(588) : error A2006: undefined symbol : SCORE E:\MASM5\huibian.asm(594) : error A2006: undefined symbol : SCORE E:\MASM5\huibian.asm(120) : error A2004: symbol type conflict E:\MASM5\huibian.asm(615) : warning A4023: with /coff switch, leading underscore required for start address : START 构建时发生错误. 总共编译时间 874 毫秒 改来改去发现无从下手,如果要放弃结构体的话应该也是可以写的,但是觉得改起来太麻烦了,不知道诸位有没有办法。。。。
成绩计算与统计——C++程序,C++程序
文本文件 score.txt记录学生的原始成绩,statistic.txt存放各专业学生人数的统计情况,原始数据内容如下,总共 40 行。 第 1 列是序号 第 2 列是学号 第 3 列是姓名 第 4 列是专业 第 5 列是平时成绩 第 6 列是期中成绩 第 7 列是期末成绩 第 8 列是总评成绩 总评成绩 = 平时成绩*10% + 期中成绩*30% + 期末成绩*60% 编程目标:计算每个学生的总评成绩,并按总评成绩从高到低排序,将排序后的 结果输出到另外一个文本文件中,并统计班级中各个专业的学生人数,写入statistic.txt文件中。格式如下 第 1 列是序号 第 2 列是学号 第 3 列是姓名 第 4 列是专业 第 5 列是平时成绩 第 6 列是期中成绩 第 7 列是期末成绩 第 8 列是总评成绩,输出的顺序是按总评成绩降序输出。 提示: struct StudentScore{ int serialNum;//序号 int id;//学号 string name;//姓名 string major;//专业 float regularScore;//平时成绩 float midtermScore;//期中成绩 float examScore;//期末成绩 float finalScore;//总评成绩 }; 函数声明建议如下: void printScore(StudentScore *stu); //输出到屏幕 void parseScore(StudentScore *s, string str); //解析一行文本 bool readFromFile(StudentScore *s, int count, string inputFileName); / /从文件读取 void calculateMajor (StudentScore *s);//统计班上各专业人数并写入文件 void calculateFinalScore (StudentScore *s, int count); //计算总评成绩 void sortScoreDesc(StudentScore *s, int count); //排序函数,总成绩降序 排, //排序可以链表也可以数组 void writeToFile(StudentScore *s, int count,string outputFileName); // 输出到文件 ![图片说明](https://img-ask.csdn.net/upload/201906/04/1559631435_940387.png)
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
《阿里巴巴开发手册》读书笔记-编程规约
Java编程规约命名风格 命名风格 类名使用UpperCamelCase风格 方法名,参数名,成员变量,局部变量都统一使用lowerCamelcase风格 常量命名全部大写,单词间用下划线隔开, 力求语义表达完整清楚,不要嫌名字长 ...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Linux 命令(122)—— watch 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] watch(1) manual
Linux 命令(121)—— cal 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] cal(1) manual
记jsp+servlet+jdbc实现的新闻管理系统
1.工具:eclipse+SQLyog 2.介绍:实现的内容就是显示新闻的基本信息,然后一个增删改查的操作。 3.数据库表设计 列名 中文名称 数据类型 长度 非空 newsId 文章ID int 11 √ newsTitle 文章标题 varchar 20 √ newsContent 文章内容 text newsStatus 是否审核 varchar 10 news...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
相关热词 c#怎么获得线程名 c# usb 采集器 c# csv 读取 c# sort() c# 关闭io流 c# 响应函数 插入 c#面对对象的三大特性 c# 打印 等比缩放 c#弹出右键菜单 c#1如何搞成01
立即提问