- 博客(29)
- 收藏
- 关注
原创 Microsoft OneNote for MacOS 输入中英文字体自动改变
解决Microsoft OneNote for MacOS 输入中英文字体自动改变
2022-07-17 13:25:32
1133
原创 报错<_io.TextIOWrapper name=‘xxx.net‘ mode=‘r‘ encoding=‘UTF-8‘>
其实原因是什么我也没搞懂 所以不要问我啦orz代码是很早写的一直可以正常运行 最近突然出了这个警告 百度无果 故此记录 with open(resultfile, 'r', encoding='UTF-8') as f: print(f)……resultfile = “xxx.net”运行后会弹出这个提示,但是依然可以正常得出结果<_io.TextIOWrapper name='xxx.net' mode='r' encoding='UTF-8'>解
2020-08-24 15:41:32
4668
原创 cmake-3.18.0-rc3-win64-x64
最新资源太少,国内下载速度过慢放个百度网盘资源cmake-3.18.0-rc3-win64-x64.msi 提取码:572l安装步骤点击此处
2020-07-04 13:03:06
7025
28
原创 网页CSS样式部分起作用
前提是确认了代码编写、编码格式均无问题。(抓耳挠腮好久灵光一闪把缓存清了马上就ok了,心累┓(;´_`)┏Chrome浏览器清理缓存:打开页面-F12开发者模式-Network-勾选Disable cache-F5重新加载...
2020-06-14 12:20:17
211
原创 杭电ACM 2015 偶数求和-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2015#include <stdio.h>int main(){ int n,m,i,j,num=0,s; while(scanf("%d %d",&n,&m)!=EOF){ for(i=0;i<n/m;i++){ s=0; for(j=0;j<...
2019-02-24 22:10:38
1789
4
原创 杭电ACM 2014 青年歌手大奖赛_评委会打分-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2014#include <stdio.h>int main(){ int n,a,h,l,i; double s=0; while(scanf("%d",&n)!=EOF){ for(i=0;i<n;i++){ scanf("%d",&a); s+=...
2019-02-24 20:26:32
728
原创 杭电ACM 2013 蟠桃记-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2013#include <stdio.h>int main(){ int n,i,num=1; while(scanf("%d",&n)!=EOF){ for(i=1;i<n;i++){ num=(num+1)*2; } printf("%d\n",num)...
2019-02-24 20:04:22
1359
原创 杭电ACM 2012 素数判定-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2012#include <stdio.h>int main(){ int x,y,i,j,num,flag; while(scanf("%d %d",&x,&y)&&(x!=0||y!=0)) { flag=1; for(i=x;i<=y&a...
2019-02-24 19:48:35
1838
原创 杭电ACM 2011 多项式求和-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2011#include <stdio.h>int main(){ int m,n,i,j,tmp; double num; while(scanf("%d",&m)!=EOF){ for(i=0;i<m;i++){ scanf("%d",&n); n...
2019-02-24 19:21:35
723
原创 杭电ACM 2010 水仙花数-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2010#include <stdio.h>int main(){ int m,n,i,a,b,c,flag=0; while(scanf("%d %d",&m,&n)!=EOF){ for(i=m;i<=n;i++){ a=i%10; b=i/100;...
2019-02-24 19:02:51
1302
原创 杭电ACM 2009 求数列的和-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2009#include <stdio.h>#include <math.h>int main(){ int m,n,i; double sq,t; while(scanf("%d %d",&n,&m)!=EOF){ t=n; for(i=0;i<...
2019-02-23 15:35:08
428
原创 杭电ACM 2008 数值统计-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2008#include <stdio.h>int main(){ int n,i,a=0,b=0,c=0; double num; while(scanf("%d",&n)!=EOF){ if(n!=0){ for(i=0;i<n;i++){ scanf(...
2019-02-23 15:33:27
499
原创 杭电ACM 2007 平方和与立方和-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2007#include <stdio.h>int main(){ int m,n,t,x=0,y=0,i; while(scanf("%d %d",&m,&n)!=EOF){ if(m>n){t=m;m=n;n=t;} for(i=...
2019-02-23 15:32:09
1478
3
原创 杭电ACM 2006 求奇数的乘积-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2006#include <stdio.h>int main(){ int n,i,num,mul=1; while(scanf("%d",&n)!=EOF){ for(i=0;i<n;i++){ scanf("%d",&num); if(num%2!=...
2019-02-23 15:31:12
572
原创 杭电ACM 2005 第几天?-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2005#include <stdio.h>int main(){ int year,month,day,i,num=0; int d[12]={31,28,31,30,31,30,31,31,30,31,30,31}; while(scanf("%d/%d/%d",&year,&...
2019-02-23 15:30:10
832
1
原创 杭电ACM 2004 成绩转换-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2004#include <stdio.h>int main(){ int t; while(scanf("%d",&t)!=EOF){ /* if(t>=90&&t<=100) printf("A"); else if (t>...
2019-02-23 15:23:10
423
原创 杭电ACM 2003 求绝对值-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2003#include <stdio.h>#include <math.h>int main(){ double num,temp; while(scanf("%lf",&num)!=EOF){ printf("%.2lf\n",fabs(num)); /...
2019-02-23 15:21:47
253
原创 杭电ACM 2002 计算球体积-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2002#include <stdio.h>#define PI 3.1415927int main(){ double r,temp; while(scanf("%lf",&r)!=EOF){ temp=4.0/3*PI*r*r*r; printf("%.3lf\...
2019-02-23 15:20:23
332
原创 杭电ACM 2001 计算两点间距离-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2001#include <stdio.h>#include <math.h> int main(){ double x1,y1,x2,y2,temp; while(scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2...
2019-02-23 15:17:29
589
原创 杭电ACM 2000 ASCII码排序-C语言
http://acm.hdu.edu.cn/showproblem.php?pid=2000#include <stdio.h>int main(){ char a[3],temp; int i,j; while(scanf("%s",&a)!=EOF){ for(i=0;i<3;i++){ for(j=0;j+1<3-i...
2019-02-23 15:16:25
337
原创 网页点击div块弹出QQ聊天界面
<div id="clan-slider"> <ul> <li class="hidden-xs"> <a href="tencent://message/?uin=1456183425&Site=qq&Menu=yes" id="slider-qq"
2018-03-27 23:04:22
270
原创 jsp访问本地图片
jsp不可以直接访问本地图片 故设置虚拟路径:打开server.xml文件(或者 F:\tomcat7\conf下的server.xml文件)在<Host>标签内加上一行:<Context path="/JavaPrj_18/inmage" docBase="F:\javaee-workspace\JavaPrj_18\WebContent\inmage" reloadable=...
2018-03-27 18:24:38
928
原创 通过jsp页面向mysql数据库插入中文数据时乱码问题
刚开始插入数据时,mysql数据库表内显示???,读取时同样也是??? 对此查找了相关资料,首先注意保持服务器、数据库、项目、以及前端编码一致。①项目以及前端编码,设置。Eclipse Java EE IDE for Web Developers ->右键项目 -> Properties -> Resource -> Text file encoding ->other
2017-12-27 09:03:39
3875
转载 Firefox对函数getYear()返回不正确的原因和解决办法
原文地址:http://blog.sina.com.cn/s/blog_51e457060100h8qr.html 作者:木子狼最近看了木子狼一下迅雷的招聘,想准备一下也去应聘,然后特意找到曾今在迅雷任职过的小网哥(Rex)咨询了一下迅雷的相关面试情况,据说机试考的JS类的题目不会太难!比如下面这样一道题目,就是编个当前日期时间出来,先放上代码:functi
2017-12-24 23:12:14
764
原创 有关配置文件 properties无法读取问题
properties.load(config.getServletContext().getResourceAsStream(value));运行时一直报错这句话,HTTP500- 空指针。说明.properties文件位置不对。首先查看.xml配置文件,如下: name /WEB-INF/config.propert
2017-12-24 22:17:04
2075
原创 关于label.setIcon(new ImageIcon("xxx.jpg"));无法显示问题
运行课本实例发现的问题如题。代码:package ksxt;import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.net.*;public class ClientWindow extends JFrame{ ClientLogin clientLogin;
2017-12-24 00:09:54
4944
原创 Bug记录 初涉jsp
1. .sql文件创建mysql数据库mysql -u root -psource 文件路径*.sql;2. Mysql 错误1366,set names utf8;DROP TABLE IF EXISTS `din`;CREATE TABLE `din` ( `Id` varchar(20) NOT NULL, `Hao` varchar(10) N
2017-12-23 00:18:39
175
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人