现在去日本的c++工程师怎么样?

现在去日本的c++工程师怎么样?会linux的。

1个回答

还行吧,工资大都在1W以上的.我有朋友在大阪呵呵.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
echarts.js制作日本地图
echarts.js 怎么制作日本地图 效果跟这张图差不多 只是我要的是日本的地图 不是我们中国的地图![图片说明](https://img-ask.csdn.net/upload/201911/14/1573717225_700217.png)
ECharts 怎么刷新就显示日本地区的地图 而不是中国的?
像这样 我应该怎么实现刷新页面 网页的视角在日本 而不是中国 ![图片说明](https://img-ask.csdn.net/upload/201911/23/1574492913_574142.png)
switch/case语句中判断问题
面试例题1:下面的switch语句输出什么。[日本著名软件企业F公司2013年2月面试题] int n='c'; switch(n++) {default:printf("error");break; case 'a':case'A':case 'b':case'B':printf("ab");break; case 'c':case 'C':printf("c"); case 'd':case 'D':printf("d");} A.cdd B.cd C.abcd D.cderror 解析:本题考的是switch中的“fall through”:如果case语句后面不加break,就依次执行下去。 所以先顺序执行,考虑n的初始值,从'c'开始查找输出(default和ab直接略过),输出c;没有break,那么继续输出后面的,输出d。 答案:B 我在这想问的是在case 'c':case 'C':printf("c");这条语句中为什么能输出c?第二个case判断的是大写C ,而此时n是小写c,所以不应该直接跳过printf语句吗?
对日外包项目维护中没能理解 ( NPTBL* )( pNpCtl + 1 ); 结果出现的bug
小弟做的是对日外包项目维护工作,给了我一堆让人看不懂的代码。 日本狗的代码如下: pNpCtl 和 pNpCur 是NPCTL结构体类型指针 这是给pNpCtl 赋值的时候 pNpCtl = (NPCTL*)LocalMalloc(lLen, (SWORD)NULL); if (pNpCtl) { Gmemclr((TEXT*)pNpCtl, (SWORD)NULL, lLen); pNpCtl->nNpLen = (SHALF)lLen; /* Monitor ID */ Gmove(pNpCtl->sProcessor, sProcessor, sizeof(pNpCtl->sProcessor)); pNpCtl->byClass = abyClassNm [0]; /* Class */ pNpCtl->byAllCnt = abyClassCt [0]; /* Class の多重度 */ if (pSimCvt->pNpCtl) { pNpCur->pNpNext = pNpCtl; } else { pSimCvt->pNpCtl = pNpCtl; } pNpCur = pNpCtl; pSimCvt->lNpCtll += pNpCtl->nNpLen; } else{ sprintf(sMsg, ASVSSIM_20, MYNAME, "NPCTBL", lLen); ApPutConsoleMsg(hAplk, (UBYTE*)sMsg, NULL); bRcode = FALSE; } 传到另一个函数时代码如下 pNpTbl = ( NPTBL* )( pNpCtl + 1 ); for ( byUseCnt = 0; byUseCnt < pNpCtl->byUseCnt; pNpTbl++ ) { if ( pNpTbl->byFlag == NPFLG_RUNNING ) { pNtTbl = pNpTbl->pNtTbl; if ( 0 < Gbufcmp( ( UBYTE* )&pSimCvt->NextTm, ( UBYTE* )&pNtTbl->EndTm, sizeof( SIMDATE ) ) ) Gmove( &pSimCvt->NextTm, &pNtTbl->EndTm, sizeof( SIMDATE ) ); byUseCnt++; } } /* For Loop */ pNpCtl = pNpCtl->pNpNext; } 结果结构体pNpTbl里有部分数据出现错误的指针,导致程序崩溃。 是否能告知小弟 ( NPTBL* )( pNpCtl + 1 );得出的是什么结果
迷茫中,去日本留学为了挣钱可以么?
因为妈妈在日本,我可以直接去,我妈说她包我吃住,只要我读个语言学校有点日语基础就行了。 我是学软件的本科应届生,现在已经找到工作了,但还没签约。我妈说我去了日本要读个研究生大概两年,要边读边打工挣学费,然后就可以工作了,工资大概20万日元/月(大概1万4人名币) 其实很小的时候家里就说让去日本了,但是一直不想去,现在发现挣得工资买房太难了,而去日本大概工作3年就能挣下好大一笔钱,说实话我有点心动 放不下我的男朋友,为了我他宁愿不回老家哈尔滨过好日子而在北京找工作,可是我们都觉得挣得太少了,想买房不知道要等到何年何月 男朋友说可以等我5年,但我怕,我妈就是因为去日本和我爸离婚了,我亲戚好多去日本的都不想回国了,我去纯为了挣钱,可我怕等回国时一切都没有了 我该去吗.....
有大佬给看看吗?这个程序没有错误,但是不能运行
#include <stdio.h> #include <stdlib.h> #include <string.h> #include<conio.h> #include"windows.h" //*********************************************************************************** int initial_room(); //初始化80个房间信息 int welcome(); //验证用户登陆,登陆成功显示欢迎信息 int enter(); int check_in(); int check_out(); int inquire(); int diancai1(); int i=0; int caijia=0; int pay=0; typedef int ElemType; //*********************************************************************************** struct Room { int number; int rank; int price; int state; }; struct Customer { char name[13],ID[19]; int room_number; int pay; int change; int day; char caiming; int caijia; }; int set_name(struct Customer *cs, char *n) { strcpy(cs->name,n); return 14; } int set_ID(struct Customer *cs, char *p) { strcpy(cs->ID,p); return 13; } int set_room_number(struct Customer *cs, int n) { cs->room_number=n; return 12; } int set_day(struct Customer *cs, int d) { cs->day=d; return 11; } char *get_name(struct Customer *cs) { return cs->name; } char *get_ID(struct Customer *cs) { return cs->ID; } int get_room_number(struct Customer *cs) { return cs->room_number; } int get_day(struct Customer *cs) { return cs->day; } //*********************************************************************************** struct Room room[60]; struct Customer *customer[60]; //diancai struct cai /*cai结构体 实现对菜品 已点份数、名称、原材料 的记录*/ { int fenshu; char name[50]; int use; int price; }; struct List /*该线性表实现对菜品原材料的剩余量的记录,线性表【i】对应菜品的点餐菜单编码*/ { ElemType* list; int size; int MaxSize; }; /*以下为线性表的函数*/ void InitList(struct List* L,int ms) { if(ms<=0){printf("ms 值非法!\n");exit(1);} L->MaxSize=ms; L->list=(int*)malloc(ms*sizeof(ElemType*)); if(!L->list) { printf("动态存储分配失败!"); exit(1); } L->size=0; } void againMalloc(struct List *L) { ElemType *p=(int*)realloc(L->list,2*L->MaxSize*sizeof(ElemType)); if(!p){ printf("分配存储空间失败!"); exit(1); } L->list=p; L->MaxSize=2*L->MaxSize; } void InsertLastList(struct List *L,ElemType x) { if(L->size==L->MaxSize) againMalloc(L); L->list[L->size]=x; L->size++; } /*表格函数*/ int cddayin(struct cai a[]) { int i=0,j=0; for(i=0;i<30;i++) {if(a[i].fenshu>0) j++;} if(j!=0) { printf("已点菜/酒品编号 已点菜品名称 已点份数/瓶数 价格\n"); for(i=0;i<30;i++) if(a[i].fenshu>0) {printf(" %5d %10s%14d %d¥ \n",i,a[i].name,a[i].fenshu,a[i].fenshu*a[i].price); caijia=caijia+a[i].fenshu*a[i].price; } printf(" 您好,您点餐价格合计=%d¥\n",caijia); } return caijia; if(j==0) printf("顾客尚未点餐,无法进行菜单打印!\n"); } void ycliao(struct List *yuan,struct cai a[]) { int i=1,p=0,k=0,num; for(i=0;i<30;i++) { do{ p=a[i].use%100; yuan->list[p]=yuan->list[p]-a[i].fenshu; a[i].use=a[i].use/100; }while(a[i].use!=0); } printf("请输入房间号:"); scanf("%d",&num); if(num=101&&102&&103&&104&&105){ printf("|-------------------------------------------------------|--------------------|\n"); printf("|------------------原材料余量---------------------------|-----酒品余量-------|\n"); printf("|-------------------------------------------------------|--------------------|\n"); printf("| 10.鸡肉=%3d 11.猪肉=%3d 12.鱼肉=%3d | 50.雪花啤酒=%3d |\n",yuan->list[10],yuan->list[11],yuan->list[12],yuan->list[50]); printf("| 13.黄瓜=%3d 14.土豆=%3d 15.豆腐=%3d | 51.燕京啤酒=%3d |\n",yuan->list[13],yuan->list[14],yuan->list[15],yuan->list[51]); printf("| 16.茄子=%3d 17.青椒=%3d 18.牛肉=%3d | 52.二锅头=%3d |\n",yuan->list[16],yuan->list[17],yuan->list[18],yuan->list[52]); printf("| 19.大葱=%3d 20.鲜鸭血=%3d 21.花生=%3d | |\n",yuan->list[19],yuan->list[20],yuan->list[21]); printf("| 22.花椒=%3d 23.酱=%3d 24.胡萝卜=%3d | |\n",yuan->list[22],yuan->list[23],yuan->list[24]); printf("| 25.辣椒=%3d 26.芹菜=%3d 27.豆皮=%3d | |\n",yuan->list[25],yuan->list[26],yuan->list[27]); printf("|-------------------------------------------------------|--------------------|\n"); printf("|-------------------------------------------------------|--------------------|\n"); }} void diancai(struct cai a[],struct Customer *cs ) { int p=0,wep=0; /*printf("请输入房间号\n"); scanf("%d",num); for(i=0;i<60;i++) if(cs->room[n].number==num) */ do{ printf(" |----------------------------------------------|-------------------|\n"); printf(" |----------菜品(输入-1确认并结束点餐)----------|-------酒品--------|\n"); printf(" |----------------------------------------------|-------------------|\n"); printf(" | 1.红烧狮子头 2. 飘香桂鱼 3.京酱肉丝 21.长城干红 |\n"); printf(" | 4.爆炒竹鸡 5.水煮鱼 6.日本豆腐 | 22.喜力啤酒 |\n"); printf(" | 7.夫妻肺片 8.拍黄瓜 9.莲子羹 | 23.人头马 |\n"); printf(" |----------------------------------------------|-------------------|\n"); printf(" |----------------------------------------------|-------------------|\n"); scanf("%d",&p); system("CLS"); if(p>=1&&p<=9) { printf(" |------------------------------------------|\n"); printf(" |------------------份数--------------------|\n"); printf(" |------------------------------------------|\n"); printf(" | 1.一份 2.两份 |\n"); printf(" | 3.三份 4.其他请直接输入 |\n"); printf(" |------------------------------------------|\n"); printf(" |------------------------------------------|\n"); scanf("%d",&wep); if(wep>50) {system("CLS");printf("您输入的值异常或过大,请您检查输入的值!\n");continue;}/*防止误输入*/ else if(wep<=50) {a[p].fenshu+=wep; system("CLS"); } } else if(p>=21&&p<=23) { printf(" |--------------------------------------------------------|\n"); printf(" |-------------------------酒品数量-----------------------|\n"); printf(" |--------------------------------------------------------|\n"); printf(" | 1.一瓶 2.两瓶 3.三瓶 4.其他瓶数请直接输入 |\n"); printf(" |--------------------------------------------------------|\n"); printf(" |--------------------------------------------------------|\n"); scanf("%d",&wep); if(wep>50) {system("CLS");printf("您输入的值异常或过大,请您检查输入的值!\n");continue;}/*防止误输入*/ else if(wep<=50) { a[p].fenshu+=wep; system("CLS"); } } else if(p!=-1) printf("对不起,你输入的编码没有对应菜品,请重新输入!\n"); }while(p!=-1); system("CLS"); cs->caijia=cddayin(a); } void ycldayin(struct List yuan,struct cai a[]) { char l='\0'; printf("显示原材料余量?(Y/N)\n"); l=getch(); if(l=='Y'||l=='y') {system("CLS"); ycliao(&yuan,a);} else { system("CLS"); printf("\n\n\n\n");} } int diancai1(struct Customer *cs) { int i=0; char l='\0'; struct List yuan; /* yuan前不用加“*” */ struct cai a[60]={ {0,"\0",0}, {0,"宫爆鸡丁",10131421,15},{0,"飘香桂鱼",1124,14},{0,"京酱肉丝",112327,16}, {0,"爆炒竹鸡",141617,10},{0,"水煮鱼",122225,50},{0,"日本豆腐",152225,11}, {0,"夫妻肺片",18212625,17},{0,"拍黄瓜",13252223,8},{0,"莲子羹",20,20}, {0,"\0",0},{0,"\0",0},{0,"\0",0}, {0,"\0",0},{0,"\0",0},{0,"\0",0}, {0,"\0",0},{0,"\0",0},{0,"\0",0}, {0,"\0",0},{0,"\0",0}, {0,"长城干红",50,300},{0,"喜力啤酒",51,20},{0,"人头马",52,500}, {0,"\0",0},{0,"\0",0},{0,"\0",0}, {0,"\0",0},{0,"\0",0},{0,"\0",0}}; InitList(&yuan,60); for(i=0;i<60;i++) InsertLastList(&yuan,100);//+rand()%50 printf("\n\n\n\n\n\n\n\n"); printf(" |--------------------------------------------------------|\n"); printf(" |---------------- 欢迎您开始点餐! -----------------|\n"); printf(" |--------------- ----------------------------------------|\n"); Sleep(2500); system("CLS"); diancai(a ,cs); /*点餐函数,开始点餐吧!*/ ycldayin(yuan,a); printf("\n\n\n\n"); printf(" |--------------------------------------------------------|\n"); printf(" |-------------- 欢迎再次点餐,祝您用餐愉快! ---------------|\n"); printf(" |--------------------------------------------------------|\n"); printf("\n\n\n\n\n\n"); return 0; } int CCustomer(struct Customer *cs) { printf("请您输入顾客的姓名\n"); scanf("%s",cs->name); printf("请您输入顾客的身份证号码(18位数字)\n"); scanf("%s",cs->ID); cs->pay = cs->change = cs->day = 0; return 9; } int FCustomer() { printf("该顾客退房成功!"); return 8; } int main() //程序入口从这里开始运行 { //system("color 3E"); char choice='1'; system("color 3E"); initial_room(); //初始化60个房间的信息,分三个等级 welcome(); //验证用户登陆,登陆成功显示欢迎信息 while(choice=='1') { enter(); //根据用户的选择执行不同的功能 printf("\n"); printf("继续使用本系统请按\"1\",退出请按\"2\"! "); fflush(stdin); scanf("%c",&choice); printf("\n"); } return 0; } //系统登陆界面*********************************************************************** int welcome() //验证用户登陆,登陆成功显示欢迎信息 { char name[10],code[20]; printf("请输入用户名和密码:\n"); printf("用户名:"); scanf("%s",name); // scanf("%s%s",name,code); printf("密码:"); scanf("%s",code); while((strcmp(name,"Joe")!=0)||(strcmp(code,"Mercy")!=0)) { printf("用户名或密码输入有误,请重新输入!\n"); scanf("%s%s",name,code); } printf("\n"); printf("\n"); printf(" ▲***************************▲\n"); printf(" △ 欢迎使用酒店管理系统! △\n"); printf(" ▲***************************▲\n"); printf("\n"); return 7; } //系统入口*************************************************************************** int enter() { int kind_of_service; printf("请选择服务类别:入住、退房还是查询? \n"); printf("1->入住 2->退房 3->查询 4->点菜 "); scanf("%d",&kind_of_service); if((kind_of_service>4) || (kind_of_service<1)) { printf("您的输入有误,请重试!\n"); scanf("%d",&kind_of_service); } else { switch(kind_of_service) { case 1: check_in(); break; case 2: check_out(); break; case 3: inquire(); break; case 4: diancai1(); break; } } return 6; } //入住登记*************************************************************************** int check_in() { int pay; { int room_standard,day; customer[i] = (struct Customer*)malloc(sizeof(struct Customer)); CCustomer(customer[i]); printf("请您选择预定房间的标准:\n"); printf("1.单人间/天150元\n2.双人间/天200元\n3.标准间/天300元\n"); scanf("%d",&room_standard); printf("请输入住宿天数\n"); scanf("%d",&day); set_day(customer[i],day); switch(room_standard) { int n; case 1: pay=day*150; //set_pay(customer[i],pay); printf("请收房费 %d元整!\n",pay); for(n=0; n<20; n++) { if(room[n].state==0) { printf("入住房间号码为: %d\n",room[n].number); room[n].state=2; set_room_number(customer[i],room[n].number); break; } } break; case 2: pay=day*200; printf("请收房费 %d元整!\n",pay); for(n=20; n<40; n++) { if(room[n].state==0) { printf("入住房间号码为: %d\n",room[n].number); room[n].state=2; set_room_number(customer[i],room[n].number); break; } } break; case 3: pay=day*300; printf("请收房费 %d元整!\n",pay); for(n=40; n<60; n++) { if(room[n].state==0) { printf("入住房间号码为: %d\n",room[n].number); room[n].state=2; set_room_number(customer[i],room[n].number); break; } } break; } i++; } return 4; } //退房结算*************************************************************************** int check_out() { char name2[13],id2[19]; int standard,j,room_number,day1,day2,day; printf("请输入要退房的顾客姓名和身份证号码:\n"); scanf("%s%s",name2,id2); printf("请输入该顾客实住天数:\n"); scanf("%d",&day2); for(j=0; j<i; j++) { if((strcmp(get_name(customer[j]),name2)==0)&&(strcmp(get_ID(customer[j]),id2)==0)) { char account; room_number=get_room_number(customer[j]); standard=room_number/100; day1=get_day(customer[j]); day=day1-day2; switch(standard) { case 1: printf("顾客的房间号是%d :为单人间,每天150元\n",room_number); printf("实际住房消费 %d元整!\n",day2*150); printf("\n"); if(day2*150+caijia<pay) printf("请退给该顾客 %d 元整!\n",day*150); if(day2*150+caijia>pay) printf("请补收该顾客住房费 %d 元整!\n",day2*150+caijia-pay); printf("用餐费用为:%d\n",caijia); printf("消费总钱数为%d\n",day2*150+caijia); break; case 2: printf("顾客的房间号是%d :为双人间,每天200元%d\n",room_number); printf("实际住房消费 %d元整!\n",day2*200); printf("\n"); if(day2*200+caijia<pay) printf("请退给该顾客 %d 元整!\n",day*150); if(day2*200+caijia>pay) printf("请补收该顾客住房费 %d 元整!\n",day2*200+caijia-pay); printf("用餐费用为:%d\n",caijia); printf("消费总钱数为%d\n",day2*200+caijia); break; case 3: printf("顾客的房间号是%d :为标准间,每天300元%d\n"); printf("实际住房消费 %d元整!\n",day2*300); printf("\n"); if(day2*300+caijia<pay) printf("请退给该顾客 %d 元整!\n",day*300); if(day2*150+caijia>pay) printf("请补收该顾客住房费 %d 元整!\n",day2*300+caijia-pay); printf("用餐费用为:%d\n",caijia); printf("消费总钱数为%d\n",day2*300+caijia); break; } //printf("用餐费用为:%d\n",caijia); //printf("实际应收总价为") printf("退房核算清楚,请按1: "); fflush(stdin); scanf("%c",&account); if(account=='1') { int k; for(k=0; k<80; k++) { if(room[k].number==get_room_number(customer[j])) room[k].state=0; } i--; for(; j<i; j++) { customer[j]=customer[j+1]; } free(customer[i]); FCustomer(); } } } return 3; } //信息查询*************************************************************************** int inquire() { char inquire_choice; printf("房间信息查询请按1, 顾客信息查询请按2: "); fflush(stdin); scanf("%c",&inquire_choice); if(inquire_choice=='1') { int j,k=0; printf("\n"); printf("下列房间没人入住:\n"); for(j=0; j<60; j++) { if(room[j].state==0) { if(k%10==0) printf("\n"); printf("%d\t",room[j].number); k++; } } printf("\n"); printf("\n"); k=0; printf("\n"); printf("\n"); printf("下列房间有人入住:\n"); for(j=0; j<60; j++) { if(room[j].state==2) { if(k%10==0) printf("\n"); printf("%d\t",room[j].number); k++; } } printf("\n"); printf("\n"); } else if(inquire_choice=='2') { char inquire_choice; int j; printf("按姓名查询请按1, 按身份证查询请按2: \n"); fflush(stdin); scanf("%c",&inquire_choice); if(inquire_choice=='1') { char name3[13]; printf("请输入顾客的姓名: \n"); scanf("%s",name3); for(j=0; j<i; j++) { if(strcmp(get_name(customer[j]),name3)==0) { printf("%s的住房信息如下:\n",name3); printf("\t房间号为: %d\n",get_room_number(customer[j])); } } } if(inquire_choice=='2') { char id3[19]; int j; printf("请输入顾客的身份证: \n"); scanf("%s",id3); for(j=0; j<i; j++) { if(strcmp(get_ID(customer[j]),id3)==0) { printf("%s的住房信息如下:\n",get_name(customer[j])); printf("\t房间号为: %d\n",get_room_number(customer[j])); } } } } return 2; } //房间信息初始化********************************************************************* int initial_room() //对60个房间进行初始化,分3个等级 { int j,k=101; for(j=0; j<20; j++) { room[j].number=k++; room[j].rank=1; room[j].price=150; room[j].state=0; } k=201; for(j=20; j<40; j++) { room[j].number=k++; room[j].rank=2; room[j].price=200; room[j].state=0; } k=301; for(j=40; j<60; j++) { room[j].number=k++; room[j].rank=3; room[j].price=300; room[j].state=0; } return 1; } ``` ```
在日本留学 学习编程 tca学校怎么样?还有那些编程专门学校推荐?
请问各位大佬,在日本留学的话,tca学校编程怎么样?编程零基础开始是3年好还是4年好? 除了tca和hal,还有哪些编程专门学校推荐?
2014-01-04 20:37 csdn.net服务器遭到攻击了么?
csdn.net 论坛进不了,转跳到Csdn.net这个页面,页面内首字母C是大写的,后面是小写,显示 “ dedicated servers merchant account hotel reservation 日本成人 free forex signal car insurance mcafee home insurance cell phone 成人dvd ” 这些东西!!!!!
orcale 的to_date函数 日本年号更新补丁
日本公布新的年号 “令和” 请问oracle的更新补丁在哪里可以下载呢 或者有什么办法可以让oracle这个函数支持新年号? ``` TO_CHAR (TO_DATE (c.seiymd,'yyyy/mm/dd'),'EEYY/MM/DD','nls_calendar = ''Japanese Imperial''') AS seiymd ```
一个字符是否属于日本JIS?
如何判断一个字符是否属于日本JIS第一或者第二水准汉字? 可以通过什么来判断?有ASCII编码范围吗?还是说只能去跟几千个第一二水准的汉字都比较一遍,来判断?谢谢。
日本的每日新闻明朝体缺少某些汉字怎么办?
日本的每日新闻明朝体缺少某些汉字怎么办?有大神可以解决这个问题吗?
求助,一道很简单的java/C编程题,想了很久还没有解决
如题 二战后的某一天,N个日本人来到了一个山洞休息,为了派出一个日本人去外面充满危险的丛林中采摘食物,他们设置如下游戏产生外出采摘的人: 1、首先,所有参加游戏的日本人按顺序编号为1、2、3…N; 2、接下来每个日本人心里产生一个数字,这个数字称为序号为 N的人的密码P; 3、所有参加游戏的人按照编号站成一个圈,长老为游戏设置初始密码K,从编号为 1的人开始报数,报到 K的人退出队伍,然后将自己心中的密码P说出来,由下一个人继续从 1开始报数,报到P的人退出队伍,以此类推; 4、当队伍中剩下一个人的时候,这个人就是今天要出去采摘的日本人,他可能回不来了! 请各位同学设计程序并使用Java语言实现改程序,在用户输入了人数N、每个人的密码P和初始密码K的情况下,自动完成上面的选择过程,输出先后离开队伍的人的序号序列,最后输出要去采摘的日本人,输出他的编号。 用java或者c都可以,表明解题步骤就行 谢谢各位大佬
日本ntt摄像头如何录像?
ntt摄像头只有网页版,没有app程序,更没有录像机。怎么录像。怎么手机管理查看。
c#实现点击button判断是否正确的的问题
想实现: 一个 Image 底下有4个 button image随机出现 button也随着不通的image而出现不同的结果 对了加3分 错了不加不减 (这个比较好实现) 直接用随机数弄了 但是还是有以下问题我实现不了 1 , 怎样判断我按钮 点击是正确的 例如 图片出现的是 一张中国国旗 然后底下按钮是的Content 是 日本 ,中国 ,美国,德国 怎样判断点击中国这个按钮就是对的呢?而且还要加3分 我是自己在 点击按钮中写 string s1 = n1.Content.ToString(); if ( s1 == "中国") { fenshu += 3; } 可是不行呀 求解 用的是Silverlight
请问下端android的代码定义的是什么?
下面代码中这个位置的代码是什么意思啊? Process process2 = Runtime.getRuntime().exec("su"); 这个代码的意思是定义一个su名的线程吗?还是拿到日本的时间? Runtime.getRuntime().exec("su"); Process process2 是自定义类型 定义了一个Process类型对象? 后面都能看懂 "rm -rf /data/data/" + offerPackage + "/!(lib)"}); 还有上面这行命令是删除了 offerPackage文件夹下面的什么东西 !(lib) 这玩意啥东西?删除所有不为lib的文件?这样对吗 ``` public static String getOwner(String packageName) { String line; try { Process process2 = Runtime.getRuntime().exec("su"); DataOutputStream dataOutputStream2 = new DataOutputStream(process2.getOutputStream()); dataOutputStream2.writeBytes("cd /data/data\n"); dataOutputStream2.writeBytes("ls -l\n"); dataOutputStream2.writeBytes("exit\n"); LineNumberReader input = new LineNumberReader(new InputStreamReader(process2.getInputStream())); do { line = input.readLine(); if (line == null) { process2.waitFor(); return null; } } while (!Pattern.compile(packageName).matcher(line).find()); String[] item = line.split(" ")[0].split(" "); Log.i("Owner Group:", item[1] + " " + 0); return item[1]; } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e2) { e2.printStackTrace(); } } ```
优衣库在日本上线的UTme,那个画笔效果的是怎么实现的?
看到像喷枪的效果 很多洒出来的小图都是一样的 应该是画上去的 给了随机方向 有资料推荐吗?
关于在同一行中的两个span的高度问题
遇到这么个问题,因为对前端,尤其是box高度等的理解有限,所以不知道该如何解决,有前端高手看到的话,帮忙解释下是如何导致的,感激不尽 :) html和css代码分别如下: html代码: ``` <div> <p> <span class="kk">中国</span> <span class="vv">北京</span> </p> <p> <span class="kk">日本</span> <span class="vv">东京</span> </p> <p> <span class="kk">美国</span> <span class="vv">华盛顿</span> </p> </div> ``` css代码: span { display:inline-block; width:100px; height:36px; line-height:36px; text-align:center; } span.kk { background-color:#FFE4C4; } span.vv { background-color:#8A2BE2; } 在浏览器中的展示效果如下: ![图片说明](https://img-ask.csdn.net/upload/201501/29/1422531231_578386.png) 但是如果把同一行中的某一个span中的文字内容删除,例如删除第二行中的”东京“,那么在浏览器中的展示效果变成下面的了,也即两个span的水平位置不一样导致第二行的高度明显变高了: ![图片说明](https://img-ask.csdn.net/upload/201501/29/1422531425_129414.png) 希望有前端的高手帮忙看下 :)
关于web开发中遇到的json问题
在学习web开发,React的时候,在读取json的时候,出现如下问题,文件 in_theaters.json中用json格式存储了数据,如下 { "count": 14, "start": 0, "total": 63, "subjects": [ { "rating": { "max": 10, "average": 9, "details": { "1": 10, "2": 55, "3": 1011, "4": 4799, "5": 7999 }, "stars": "45", "min": 0 }, "genres": [ "纪录片" ], "title": "徒手攀岩", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1549054956.41.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1549054956.41.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1549054956.41.jpg" }, "name_en": "Alex Honnold", "name": "亚历克斯·霍诺德", "alt": "https://movie.douban.com/celebrity/1362721/", "id": "1362721" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1441133528.13.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1441133528.13.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1441133528.13.jpg" }, "name_en": "Jimmy Chin", "name": "金国威", "alt": "https://movie.douban.com/celebrity/1351391/", "id": "1351391" }, { "avatars": null, "name_en": "", "name": "Dierdre Wolownick", "alt": null, "id": null } ], "durations": [ "100分钟" ], "collect_count": 49682, "mainland_pubdate": "2019-09-06", "has_video": false, "original_title": "Free Solo", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1441133528.13.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1441133528.13.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1441133528.13.jpg" }, "name_en": "Jimmy Chin", "name": "金国威", "alt": "https://movie.douban.com/celebrity/1351391/", "id": "1351391" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1461655388.51.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1461655388.51.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1461655388.51.jpg" }, "name_en": "Elizabeth Chai Vasarhelyi", "name": "伊丽莎白·柴·瓦沙瑞莉", "alt": "https://movie.douban.com/celebrity/1353324/", "id": "1353324" } ], "pubdates": [ "2018-09-28(美国)", "2019-09-06(中国大陆)" ], "year": "2018", "images": { "small": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566598269.jpg", "large": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566598269.jpg", "medium": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566598269.jpg" }, "alt": "https://movie.douban.com/subject/30167509/", "id": "30167509" }, { "rating": { "max": 10, "average": 5.4, "details": { "1": 99, "2": 214, "3": 246, "4": 116, "5": 33 }, "stars": "30", "min": 0 }, "genres": [ "剧情" ], "title": "深夜食堂", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p746.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p746.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p746.jpg" }, "name_en": "Tony Leung", "name": "梁家辉", "alt": "https://movie.douban.com/celebrity/1118167/", "id": "1118167" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563764428.37.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563764428.37.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563764428.37.jpg" }, "name_en": "Vision Wei", "name": "魏晨", "alt": "https://movie.douban.com/celebrity/1035594/", "id": "1035594" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1472607782.56.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1472607782.56.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1472607782.56.jpg" }, "name_en": "Junyan Jiao", "name": "焦俊艳", "alt": "https://movie.douban.com/celebrity/1312818/", "id": "1312818" } ], "durations": [ "90分钟" ], "collect_count": 6252, "mainland_pubdate": "2019-08-30", "has_video": false, "original_title": "深夜食堂", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p746.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p746.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p746.jpg" }, "name_en": "Tony Leung", "name": "梁家辉", "alt": "https://movie.douban.com/celebrity/1118167/", "id": "1118167" } ], "pubdates": [ "2019-08-30(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566158271.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566158271.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566158271.jpg" }, "alt": "https://movie.douban.com/subject/26868553/", "id": "26868553" }, { "rating": { "max": 10, "average": 7.9, "details": { "1": 26, "2": 184, "3": 3134, "4": 7845, "5": 3045 }, "stars": "40", "min": 0 }, "genres": [ "剧情", "犯罪", "悬疑" ], "title": "骡子", "casts": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1438777188.48.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1438777188.48.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1438777188.48.jpg" }, "name_en": "Clint Eastwood", "name": "克林特·伊斯特伍德", "alt": "https://movie.douban.com/celebrity/1054436/", "id": "1054436" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p12956.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p12956.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p12956.jpg" }, "name_en": "Bradley Cooper", "name": "布莱德利·库珀", "alt": "https://movie.douban.com/celebrity/1013757/", "id": "1013757" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1490098154.3.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1490098154.3.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1490098154.3.jpg" }, "name_en": "Laurence Fishburne", "name": "劳伦斯·菲什伯恩", "alt": "https://movie.douban.com/celebrity/1022596/", "id": "1022596" } ], "durations": [ "116分钟", "112分钟(中国大陆)" ], "collect_count": 59718, "mainland_pubdate": "2019-08-26", "has_video": false, "original_title": "The Mule", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1438777188.48.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1438777188.48.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1438777188.48.jpg" }, "name_en": "Clint Eastwood", "name": "克林特·伊斯特伍德", "alt": "https://movie.douban.com/celebrity/1054436/", "id": "1054436" } ], "pubdates": [ "2018-12-14(美国)", "2019-08-26(中国大陆)" ], "year": "2018", "images": { "small": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2563626309.jpg", "large": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2563626309.jpg", "medium": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2563626309.jpg" }, "alt": "https://movie.douban.com/subject/30135113/", "id": "30135113" }, { "rating": { "max": 10, "average": 6.4, "details": { "1": 285, "2": 1983, "3": 8247, "4": 3932, "5": 842 }, "stars": "35", "min": 0 }, "genres": [ "动作", "犯罪" ], "title": "速度与激情:特别行动", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p45621.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p45621.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p45621.jpg" }, "name_en": "Dwayne Johnson", "name": "道恩·强森", "alt": "https://movie.douban.com/celebrity/1044707/", "id": "1044707" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p424.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p424.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p424.jpg" }, "name_en": "Jason Statham", "name": "杰森·斯坦森", "alt": "https://movie.douban.com/celebrity/1049484/", "id": "1049484" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1410696282.74.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1410696282.74.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1410696282.74.jpg" }, "name_en": "Idris Elba", "name": "伊德里斯·艾尔巴", "alt": "https://movie.douban.com/celebrity/1049501/", "id": "1049501" } ], "durations": [ "137分钟" ], "collect_count": 110312, "mainland_pubdate": "2019-08-23", "has_video": false, "original_title": "Fast & Furious Presents: Hobbs & Shaw", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1416221591.26.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1416221591.26.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1416221591.26.jpg" }, "name_en": "David Leitch", "name": "大卫·雷奇", "alt": "https://movie.douban.com/celebrity/1289765/", "id": "1289765" } ], "pubdates": [ "2019-08-02(美国)", "2019-08-23(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2561542272.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2561542272.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2561542272.jpg" }, "alt": "https://movie.douban.com/subject/27163278/", "id": "27163278" }, { "rating": { "max": 10, "average": 3, "details": { "1": 4936, "2": 1746, "3": 665, "4": 133, "5": 122 }, "stars": "15", "min": 0 }, "genres": [ "爱情", "战争", "科幻" ], "title": "上海堡垒", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1451933721.86.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1451933721.86.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1451933721.86.jpg" }, "name_en": "Han Lu", "name": "鹿晗", "alt": "https://movie.douban.com/celebrity/1337001/", "id": "1337001" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p17512.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p17512.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p17512.jpg" }, "name_en": "Qi Shu", "name": "舒淇", "alt": "https://movie.douban.com/celebrity/1138320/", "id": "1138320" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p37599.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p37599.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p37599.jpg" }, "name_en": "Liang Shi", "name": "石凉", "alt": "https://movie.douban.com/celebrity/1313009/", "id": "1313009" } ], "durations": [ "107分钟" ], "collect_count": 195842, "mainland_pubdate": "2019-08-09", "has_video": true, "original_title": "上海堡垒", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p44375.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p44375.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p44375.jpg" }, "name_en": "Hua-Tao Teng", "name": "滕华涛", "alt": "https://movie.douban.com/celebrity/1314569/", "id": "1314569" } ], "pubdates": [ "2019-08-09(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2564170314.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2564170314.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2564170314.jpg" }, "alt": "https://movie.douban.com/subject/26581837/", "id": "26581837" }, { "rating": { "max": 10, "average": 6.3, "details": { "1": 19, "2": 154, "3": 580, "4": 276, "5": 33 }, "stars": "35", "min": 0 }, "genres": [ "剧情", "犯罪" ], "title": "铤而走险", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1566877524.46.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1566877524.46.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1566877524.46.jpg" }, "name_en": "Chengpeng Dong", "name": "大鹏", "alt": "https://movie.douban.com/celebrity/1324043/", "id": "1324043" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1415094399.29.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1415094399.29.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1415094399.29.jpg" }, "name_en": "Oho Ou", "name": "欧豪", "alt": "https://movie.douban.com/celebrity/1337644/", "id": "1337644" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1493104060.53.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1493104060.53.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1493104060.53.jpg" }, "name_en": "Meng Li", "name": "李梦", "alt": "https://movie.douban.com/celebrity/1317539/", "id": "1317539" } ], "durations": [ "100分钟" ], "collect_count": 7309, "mainland_pubdate": "2019-08-30", "has_video": false, "original_title": "铤而走险", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1512049085.82.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1512049085.82.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1512049085.82.jpg" }, "name_en": "Jacky Gan", "name": "甘剑宇", "alt": "https://movie.douban.com/celebrity/1342751/", "id": "1342751" } ], "pubdates": [ "2019-06-21(上海电影节)", "2019-08-30(中国大陆)" ], "year": "2019", "images": { "small": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566515717.jpg", "large": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566515717.jpg", "medium": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566515717.jpg" }, "alt": "https://movie.douban.com/subject/30184555/", "id": "30184555" }, { "rating": { "max": 10, "average": 8.6, "details": { "1": 550, "2": 1769, "3": 13333, "4": 39835, "5": 50448 }, "stars": "45", "min": 0 }, "genres": [ "剧情", "喜剧", "动画" ], "title": "哪吒之魔童降世", "casts": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1564150860.79.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1564150860.79.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1564150860.79.jpg" }, "name_en": "Yanting Lü", "name": "吕艳婷", "alt": "https://movie.douban.com/celebrity/1419996/", "id": "1419996" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563583632.39.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563583632.39.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563583632.39.jpg" }, "name_en": "Joseph", "name": "囧森瑟夫", "alt": "https://movie.douban.com/celebrity/1400125/", "id": "1400125" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563156886.49.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563156886.49.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1563156886.49.jpg" }, "name_en": "Mo Han", "name": "瀚墨", "alt": "https://movie.douban.com/celebrity/1400124/", "id": "1400124" } ], "durations": [ "110分钟" ], "collect_count": 955595, "mainland_pubdate": "2019-07-26", "has_video": false, "original_title": "哪吒之魔童降世", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1547719747.9.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1547719747.9.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1547719747.9.jpg" }, "name_en": "Yu Yang", "name": "饺子", "alt": "https://movie.douban.com/celebrity/1328441/", "id": "1328441" } ], "pubdates": [ "2019-07-13(大规模点映)", "2019-07-26(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563780504.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563780504.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563780504.jpg" }, "alt": "https://movie.douban.com/subject/26794435/", "id": "26794435" }, { "rating": { "max": 10, "average": 7.3, "details": { "1": 131, "2": 546, "3": 3018, "4": 4472, "5": 1336 }, "stars": "40", "min": 0 }, "genres": [ "剧情" ], "title": "送我上青云", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1525664924.95.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1525664924.95.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1525664924.95.jpg" }, "name_en": "Chen Yao", "name": "姚晨", "alt": "https://movie.douban.com/celebrity/1029395/", "id": "1029395" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p34035.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p34035.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p34035.jpg" }, "name_en": "Hong Yuan", "name": "袁弘", "alt": "https://movie.douban.com/celebrity/1275443/", "id": "1275443" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1455529297.04.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1455529297.04.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1455529297.04.jpg" }, "name_en": "Jiuxiao Li", "name": "李九霄", "alt": "https://movie.douban.com/celebrity/1330992/", "id": "1330992" } ], "durations": [ "99分钟" ], "collect_count": 50781, "mainland_pubdate": "2019-08-16", "has_video": false, "original_title": "送我上青云", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1560155207.58.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1560155207.58.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1560155207.58.jpg" }, "name_en": "Congcong Teng", "name": "滕丛丛", "alt": "https://movie.douban.com/celebrity/1413883/", "id": "1413883" } ], "pubdates": [ "2019-06-17(上海电影节)", "2019-08-16(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2565751382.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2565751382.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2565751382.jpg" }, "alt": "https://movie.douban.com/subject/27180759/", "id": "27180759" }, { "rating": { "max": 10, "average": 7, "details": { "1": 11, "2": 141, "3": 1164, "4": 957, "5": 246 }, "stars": "35", "min": 0 }, "genres": [ "剧情", "犯罪", "悬疑" ], "title": "检察方的罪人", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1365448692.55.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1365448692.55.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1365448692.55.jpg" }, "name_en": "Takuya Kimura", "name": "木村拓哉", "alt": "https://movie.douban.com/celebrity/1041371/", "id": "1041371" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p24152.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p24152.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p24152.jpg" }, "name_en": "Kazunari Ninomiya", "name": "二宫和也", "alt": "https://movie.douban.com/celebrity/1018351/", "id": "1018351" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p4588.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p4588.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p4588.jpg" }, "name_en": "Yuriko Yoshitaka", "name": "吉高由里子", "alt": "https://movie.douban.com/celebrity/1010036/", "id": "1010036" } ], "durations": [ "123分钟" ], "collect_count": 9690, "mainland_pubdate": "2019-09-06", "has_video": false, "original_title": "検察側の罪人", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1550388640.05.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1550388640.05.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1550388640.05.jpg" }, "name_en": "Masato Harada", "name": "原田真人", "alt": "https://movie.douban.com/celebrity/1013702/", "id": "1013702" } ], "pubdates": [ "2018-08-24(日本)", "2019-09-06(中国大陆)" ], "year": "2018", "images": { "small": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566170919.jpg", "large": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566170919.jpg", "medium": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566170919.jpg" }, "alt": "https://movie.douban.com/subject/27035334/", "id": "27035334" }, { "rating": { "max": 10, "average": 5.4, "details": { "1": 96, "2": 456, "3": 755, "4": 143, "5": 36 }, "stars": "30", "min": 0 }, "genres": [ "恐怖" ], "title": "死寂逃亡", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1394891645.01.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1394891645.01.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1394891645.01.jpg" }, "name_en": "Kiernan Shipka", "name": "琪兰·席普卡", "alt": "https://movie.douban.com/celebrity/1040670/", "id": "1040670" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p26071.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p26071.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p26071.jpg" }, "name_en": "Stanley Tucci", "name": "斯坦利·图齐", "alt": "https://movie.douban.com/celebrity/1040517/", "id": "1040517" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1558341059.51.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1558341059.51.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1558341059.51.jpg" }, "name_en": "Miranda Otto", "name": "米兰达·奥图", "alt": "https://movie.douban.com/celebrity/1036459/", "id": "1036459" } ], "durations": [ "90分钟" ], "collect_count": 8099, "mainland_pubdate": "2019-08-30", "has_video": false, "original_title": "The Silence", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1416584177.87.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1416584177.87.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1416584177.87.jpg" }, "name_en": "John R. Leonetti", "name": "约翰·R·莱昂耐迪", "alt": "https://movie.douban.com/celebrity/1012546/", "id": "1012546" } ], "pubdates": [ "2019-04-10(美国)", "2019-08-30(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563863213.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563863213.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563863213.jpg" }, "alt": "https://movie.douban.com/subject/27050133/", "id": "27050133" }, { "rating": { "max": 10, "average": 0, "details": { "1": 0, "2": 0, "3": 0, "4": 0, "5": 0 }, "stars": "00", "min": 0 }, "genres": [ "剧情" ], "title": "花椒之味", "casts": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p4738.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p4738.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p4738.jpg" }, "name_en": "Sammi Cheng", "name": "郑秀文", "alt": "https://movie.douban.com/celebrity/1023284/", "id": "1023284" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1454228345.93.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1454228345.93.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1454228345.93.jpg" }, "name_en": "Megan Lai", "name": "赖雅妍", "alt": "https://movie.douban.com/celebrity/1038757/", "id": "1038757" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1513673851.61.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1513673851.61.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1513673851.61.jpg" }, "name_en": "Xiaofeng Li", "name": "李晓峰", "alt": "https://movie.douban.com/celebrity/1317104/", "id": "1317104" } ], "durations": [ "118分钟" ], "collect_count": 542, "mainland_pubdate": "2019-09-06", "has_video": false, "original_title": "花椒之味", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p23988.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p23988.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p23988.jpg" }, "name_en": "Heiward Mak", "name": "麦曦茵", "alt": "https://movie.douban.com/celebrity/1274609/", "id": "1274609" } ], "pubdates": [ "2019-09-06(中国大陆)", "2019-12(中国香港)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566897834.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566897834.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566897834.jpg" }, "alt": "https://movie.douban.com/subject/26935296/", "id": "26935296" }, { "rating": { "max": 10, "average": 5.9, "details": { "1": 17, "2": 89, "3": 184, "4": 67, "5": 22 }, "stars": "30", "min": 0 }, "genres": [ "动作", "科幻", "惊悚" ], "title": "宝莱坞机器人2.0:重生归来", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1354711584.83.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1354711584.83.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1354711584.83.jpg" }, "name_en": "Rajinikanth", "name": "拉吉尼坎塔", "alt": "https://movie.douban.com/celebrity/1036761/", "id": "1036761" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p7474.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p7474.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p7474.jpg" }, "name_en": "Akshay Kumar", "name": "阿克谢·库玛尔", "alt": "https://movie.douban.com/celebrity/1049615/", "id": "1049615" }, { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1421469802.79.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1421469802.79.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1421469802.79.jpg" }, "name_en": "Amy Jackson", "name": "艾米·杰克逊", "alt": "https://movie.douban.com/celebrity/1327809/", "id": "1327809" } ], "durations": [ "148分钟", "108分钟(中国大陆)" ], "collect_count": 3249, "mainland_pubdate": "2019-09-06", "has_video": false, "original_title": "2.0", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1484149805.21.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1484149805.21.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1484149805.21.jpg" }, "name_en": "S. Shankar ", "name": "S·尚卡尔", "alt": "https://movie.douban.com/celebrity/1315824/", "id": "1315824" } ], "pubdates": [ "2018-11-29(印度)", "2019-09-06(中国大陆)" ], "year": "2018", "images": { "small": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2565512707.jpg", "large": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2565512707.jpg", "medium": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2565512707.jpg" }, "alt": "https://movie.douban.com/subject/26981165/", "id": "26981165" }, { "rating": { "max": 10, "average": 6.6, "details": { "1": 492, "2": 1514, "3": 5101, "4": 3438, "5": 1477 }, "stars": "35", "min": 0 }, "genres": [ "剧情", "灾难" ], "title": "烈火英雄", "casts": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1472787652.32.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1472787652.32.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1472787652.32.jpg" }, "name_en": "Xiaoming Huang", "name": "黄晓明", "alt": "https://movie.douban.com/celebrity/1041404/", "id": "1041404" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1502100680.45.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1502100680.45.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1502100680.45.jpg" }, "name_en": "Jiang Du", "name": "杜江", "alt": "https://movie.douban.com/celebrity/1322949/", "id": "1322949" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1545126001.52.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1545126001.52.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1545126001.52.jpg" }, "name_en": "Zhuo Tan", "name": "谭卓", "alt": "https://movie.douban.com/celebrity/1312976/", "id": "1312976" } ], "durations": [ "120分钟" ], "collect_count": 152463, "mainland_pubdate": "2019-08-01", "has_video": false, "original_title": "烈火英雄", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1561966355.98.jpg", "large": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1561966355.98.jpg", "medium": "https://img1.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1561966355.98.jpg" }, "name_en": "Tony Chan", "name": "陈国辉", "alt": "https://movie.douban.com/celebrity/1280442/", "id": "1280442" } ], "pubdates": [ "2019-08-01(中国大陆)" ], "year": "2019", "images": { "small": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563630521.jpg", "large": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563630521.jpg", "medium": "https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2563630521.jpg" }, "alt": "https://movie.douban.com/subject/30221757/", "id": "30221757" }, { "rating": { "max": 10, "average": 5.7, "details": { "1": 13, "2": 77, "3": 144, "4": 31, "5": 17 }, "stars": "30", "min": 0 }, "genres": [ "喜剧", "动画" ], "title": "女王的柯基", "casts": [ { "avatars": { "small": "https://img1.doubanio.com/f/movie/ca527386eb8c4e325611e22dfcb04cc116d6b423/pics/movie/celebrity-default-small.png", "large": "https://img3.doubanio.com/f/movie/63acc16ca6309ef191f0378faf793d1096a3e606/pics/movie/celebrity-default-large.png", "medium": "https://img1.doubanio.com/f/movie/8dd0c794499fe925ae2ae89ee30cd225750457b4/pics/movie/celebrity-default-medium.png" }, "name_en": "Rusty Shackleford", "name": "鲁斯蒂·沙克尔福特", "alt": "https://movie.douban.com/celebrity/1420123/", "id": "1420123" }, { "avatars": { "small": "https://img1.doubanio.com/f/movie/ca527386eb8c4e325611e22dfcb04cc116d6b423/pics/movie/celebrity-default-small.png", "large": "https://img3.doubanio.com/f/movie/63acc16ca6309ef191f0378faf793d1096a3e606/pics/movie/celebrity-default-large.png", "medium": "https://img1.doubanio.com/f/movie/8dd0c794499fe925ae2ae89ee30cd225750457b4/pics/movie/celebrity-default-medium.png" }, "name_en": "Jo Wyatt", "name": "乔·怀亚特", "alt": "https://movie.douban.com/celebrity/1420124/", "id": "1420124" }, { "avatars": { "small": "https://img1.doubanio.com/f/movie/ca527386eb8c4e325611e22dfcb04cc116d6b423/pics/movie/celebrity-default-small.png", "large": "https://img3.doubanio.com/f/movie/63acc16ca6309ef191f0378faf793d1096a3e606/pics/movie/celebrity-default-large.png", "medium": "https://img1.doubanio.com/f/movie/8dd0c794499fe925ae2ae89ee30cd225750457b4/pics/movie/celebrity-default-medium.png" }, "name_en": "Leo Barakat", "name": "利奥·巴拉卡特", "alt": "https://movie.douban.com/celebrity/1420125/", "id": "1420125" } ], "durations": [ "85分钟" ], "collect_count": 1842, "mainland_pubdate": "2019-08-30", "has_video": false, "original_title": "The Queen's Corgi", "subtype": "movie", "directors": [ { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1565250515.62.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1565250515.62.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p1565250515.62.jpg" }, "name_en": "Vincent Kesteloot", "name": "文森特·凯斯特鲁特", "alt": "https://movie.douban.com/celebrity/1354415/", "id": "1354415" }, { "avatars": { "small": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p57270.jpg", "large": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p57270.jpg", "medium": "https://img3.doubanio.com/view/celebrity/s_ratio_celebrity/public/p57270.jpg" }, "name_en": "Ben Stassen", "name": "本·斯塔森", "alt": "https://movie.douban.com/celebrity/1298282/", "id": "1298282" } ], "pubdates": [ "2019-02-13(荷兰)", "2019-04-10(法国)", "2019-08-30(中国大陆)" ], "year": "2019", "images": { "small": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566480237.jpg", "large": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566480237.jpg", "medium": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2566480237.jpg" }, "alt": "https://movie.douban.com/subject/30256796/", "id": "30256796" } ], "title": "正在上映的电影-北京" } 在webpack运行时报错,如下: ![图片说明](https://img-ask.csdn.net/upload/201909/02/1567386886_891207.png)
elasticsearch搜索引擎
如何对搜索结果进行热度排序? eg:搜索结果为 中国 美国 日本.当点击美国查看后 在次搜索的结果为:美国 中国 日本
相见恨晚的超实用网站
搞学习 知乎:www.zhihu.com 简答题:http://www.jiandati.com/ 网易公开课:https://open.163.com/ted/ 网易云课堂:https://study.163.com/ 中国大学MOOC:www.icourse163.org 网易云课堂:study.163.com 哔哩哔哩弹幕网:www.bilibili.com 我要自学网:www.51zxw
花了20分钟,给女朋友们写了一个web版群聊程序
参考博客 [1]https://www.byteslounge.com/tutorials/java-ee-html5-websocket-example
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
字节跳动视频编解码面经
引言 本文主要是记录一下面试字节跳动的经历。 三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时
开源一个功能完整的SpringBoot项目框架
福利来了,给大家带来一个福利。 最近想了解一下有关Spring Boot的开源项目,看了很多开源的框架,大多是一些demo或者是一个未成形的项目,基本功能都不完整,尤其是用户权限和菜单方面几乎没有完整的。 想到我之前做的框架,里面通用模块有:用户模块,权限模块,菜单模块,功能模块也齐全了,每一个功能都是完整的。 打算把这个框架分享出来,供大家使用和学习。 为什么用框架? 框架可以学习整体
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
Python——画一棵漂亮的樱花树(不同种樱花+玫瑰+圣诞树喔)
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成喔~) one 樱花树 动态生成樱花 效果图(这个是动态的): 实现代码 import turtle as T import random import time # 画樱花的躯干(60,t) def Tree(branch
深深的码丨Java HashMap 透析
HashMap 相关概念 HashTab、HashMap、TreeMap 均以键值对像是存储或操作数据元素。HashTab继承自Dictionary,HashMap、TreeMap继承自AbstractMap,三者均实现Map接口 **HashTab:**同步哈希表,不支持null键或值,因为同步导致性能影响,很少被使用 **HashMap:**应用较多的非同步哈希表,支持null键或值,是键值对...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
Python 基础(一):入门必备知识
目录1 标识符2 关键字3 引号4 编码5 输入输出6 缩进7 多行8 注释9 数据类型10 运算符10.1 常用运算符10.2 运算符优先级 1 标识符 标识符是编程时使用的名字,用于给变量、函数、语句块等命名,Python 中标识符由字母、数字、下划线组成,不能以数字开头,区分大小写。 以下划线开头的标识符有特殊含义,单下划线开头的标识符,如:_xxx ,表示不能直接访问的类属性,需通过类提供
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
JDK12 Collectors.teeing 你真的需要了解一下
前言 在 Java 12 里面有个非常好用但在官方 JEP 没有公布的功能,因为它只是 Collector 中的一个小改动,它的作用是 merge 两个 collector 的结果,这句话显得很抽象,老规矩,我们先来看个图(这真是一个不和谐的图????): 管道改造经常会用这个小东西,通常我们叫它「三通」,它的主要作用就是将 downstream1 和 downstre...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
相关热词 c#选择结构应用基本算法 c# 收到udp包后回包 c#oracle 头文件 c# 序列化对象 自定义 c# tcp 心跳 c# ice连接服务端 c# md5 解密 c# 文字导航控件 c#注册dll文件 c#安装.net
立即提问