首页
博客使用须知
Search
1
沉金工艺介绍
106 阅读
2
板载天线介绍
90 阅读
3
Python-童叟皆懂,一文涵盖你想知道的经典
85 阅读
4
「题解」航电ACM2001-计算两点间的距离
68 阅读
5
单词记忆背诵辅助工具
60 阅读
HarmonyOS
HarmonyOS入门
原创
原创工具
python系列
pip类
知识整理Py
c++
知识整理C
随笔
网页
概览
假日限定
默认分类
proj
登录
Search
标签搜索
原创
c++
题解
pip
python
工作室原创
软件
杭电ACM
NOI
HarmonyOS
pygame
windows
html
网页设计
版权
结构体
调试
安装
后端
开发语言
虹棠包
累计撰写
25
篇文章
累计收到
5
条评论
首页
栏目
HarmonyOS
HarmonyOS入门
原创
原创工具
python系列
pip类
知识整理Py
c++
知识整理C
随笔
网页
概览
假日限定
默认分类
proj
页面
博客使用须知
搜索到
25
篇与
的结果
2025-04-15
Unexpected Journey: Three Parks in One Day
Good morning! Today I want to share an crazy adventure with my three friends. It proves that sometimes getting lost can be the best part of traveling. Last National Day holiday, we went to Jiaoshan Great Wall. The climbing was so hard! The stairs were almost vertical. By 11 AM, we finally reached the top, sweating and tired. Then Lily pointed west: "Look! There's another path!" Our map showed nothing there, but we decided to explore. This was our first spontaneous choice.Walking along the unknown trail, we found a magical view... mountains hugging a huge green lake. Birds were singing everywhere. Later we learned this was Yansai Lake. We kept going through a pine forest until sunset. Suddenly, an old iron gate appeared. Its sign was faded, but we could read "ChangShou Mountain Geo-Park". The gate was open, so... we entered.Inside was another world! Narrow canyons, strange rock shapes. The coolest was "Sky Crack"... a super narrow path between tall cliffs. We had to walk sideways! When we finally got out, it was completely dark. No taxis, no buses. Just corn fields and crickets.After 40 minutes waiting, a kind man in a Buick stopped. Mr. Zhang said: "You kids remind me of my daughter." He drove us back while sharing roasted chestnuts. That car smelled like safety and kindness.Total cost? 20 yuan! We accidentally visited three parks with one ticket. This taught me: Don't fear unplanned paths. Those rusty gates and hidden trails? They're life's surprise gifts. So next time you travel, dare to misread the map. Let curiosity override caution. Because sometimes, the most extraordinary views require breaking the rules... even if accidentally. Thank you.
2025年04月15日
8 阅读
0 评论
0 点赞
2025-04-01
锤柄N1 T0101 N2 S300 M03 N3 G95 N4 G00 X29 Z5 N5 G00 X5 Z5 N6 G01 X5 Z0 F0.3 N7 G01 X8 Z-1.5 N8 G01 X8 Z-13.5 N9 G01 X7 Z-14 N10 G01 X6.5 Z-14 N11 G01 X6.5 Z-16 N12 G01 X12 Z-16 N13 G01 X18.5 Z-81.5 N14 G00 X29 Z-81.5 N15 G00 X29 Z5 N16 M05 N17 M30葫芦N1 T0101 N2 S300 M03 N3 G95 N4 G00 X52 Z5 N5 G00 X0 Z5 N6 G01 X0 Z0 F0.3 N7 G03 X4.14 Z-6.64 R3.64 N8 G02 X17.68 Z-23.02 R20.2 N9 G03 X19.32 Z-34.92 R7.12 N10 G03 X23.08 Z-50.98 R8.52 N11 G00 X52 Z-50.98 N12 G00 X52 Z5 N13 M05 N14 M30组合体N1 T0101 N2 S300 M03 N3 G95 N4 G00 X52 Z5 N5 G00 X6.44 Z5 N6 G01 X6.44 Z0 F0.3 N7 G03 X18.024 Z-6.137 R5.8 N8 G02 X24 Z-12 R7.2 N9 G01 X24 Z-18 N10 G01 X30 Z-20.2 N11 G01 X30 Z-37 N12 G01 X32 Z-37 N13 G01 X32 Z-43.6 N14 G01 X40 Z-50 N15 G01 X40 Z-57 N16 G00 x52 2-57 N17 G00 X52 Z5 N18 M05 N19 M30花瓶N1 T0101 N2 S300 M03 N3 G95 N4 G00 X50 Z5 N5 G00 X12 Z5 N6 G01 X12 Z0 F0.3 N7 G03 X14 Z-1 R1 N8 G01 X14 Z-1.555 N9 G03 X13.75 Z-2.41 R3 N10 G02 X10.616 Z-20.978 R45.79 N11 G02 X17.3 Z-29.857 R20 N12 G03 X11.236 Z-52.421 R17 N13 G02 X11.242 Z-55.588 R2 N14 G03 X11.242 Z-58.843 R2 N15 G03 X11.022 Z-61.253 R2 N16 G02 X11.7 Z-62.367 R2 N17 G01 X18 Z-62.367 N18 G03 X20 Z-63.367 R2 N19 G01 X20 Z-65.367 N20 G00 X50 Z-65.367 N21 G00 X50 Z5 N22 M05 N23 M30
2025年04月01日
32 阅读
1 评论
3 点赞
2024-12-26
伪造发票怎么判
罪名刑罚罚金范围其他规定伪造、出售伪造的增值税专用发票3年以下有期或拘役或管制2万-20万数量较大或其他严重情节:3-10年有期并处5万-50万罚金数量巨大或其他特别严重情节:10年以上有期或无期,并处5万-50万罚金或没收财产非法购买增值税专用发票或购买伪造的增值税专用发票5年以下有期或拘役2万-20万非法购买后虚开或出售的,依相关条款定罪处罚伪造、擅自制造或出售伪造、擅自制造的可以用于骗取出口退税、抵扣税款的其他发票3年以下有期或拘役或管制2万-20万数量巨大:3-7年有期,并处5万-50万罚金数量特别巨大:7年以上有期,并处5万-50万罚金或没收财产持有伪造的发票2年以下有期、拘役或管制数量较大:罚金数量巨大:2-7年有期,并处罚金{mtitle title="声明"/}内容整理自网络,不保证绝对准确性及时效性,有相关问题请寻求专业人员帮助。
2024年12月26日
19 阅读
0 评论
0 点赞
2024-03-26
NASA: Starship Test Flight Marked Progress toward Moon Landing Plans
By Bryan Lynn24 March 2024The American space agency NASA says the recent test flight of SpaceX's Starship rocket demonstrated progress in several important areas even though the rocket was lost.NASA is planning to use Starship to carry the first astronauts to the moon since the agency's Apollo 17 mission in 1972. But the spacecraft will have to pass additional testing before a moon mission.Such a mission would be part of NASA's Artemis program. The next planned trip in that program will be Artemis II, which is set for September 2025. NASA aims to send astronauts into orbit around the moon but will not attempt a landing on the lunar surface.Artemis III, planned for September 2026, will attempt to land astronauts on the surface of the moon. SpaceX's Starship rocket has been chosen for this mission.Both Artemis II and Artemis III have faced delays in planned launches.SpaceX's latest test flight of Starship took place on March 14. Starship was able to travel farther than ever before during the flight. But the rocket broke apart when attempting to re-enter Earth's atmosphere.At the time it broke apart, Starship was nearing a planned splashdown in the Indian Ocean, about one hour after launching from southern Texas.During a live broadcast of the test flight, SpaceX confirmed that the rocket had been "lost" upon its re-entry attempt. Starship is designed to be reused.Two Starship test flights last year both ended in explosions minutes after liftoff. By surviving for close to 50 minutes in its latest test, both SpaceX and NASA considered the effort a success.NASA chief Bill Nelson praised Starship's test after the launch on X. "Congrats to @SpaceX on a successful test flight! Starship has soared into the heavens. Together, we are making great strides through Artemis to return humanity to the Moon—then look onward to Mars."In a statement, NASA described the ways Starship's test brought the agency closer to being ready to fly astronauts to the moon.The space agency noted the rocket used its six Raptor engines to successfully separate from its first-stage Super Heavy booster. The Super Heavy itself was powered by 33 Raptor engines.During a Starship launch test last April, several of the booster's 33 methane-fueled engines failed and the booster did not separate from the spacecraft. This caused the whole vehicle to explode and crash into the sea four minutes after liftoff.SpaceX was able to double the length of the flight during another test in November. While all 33 engines fired and the booster fell away as planned, the flight ended in a pair of explosions, first the booster and then the spacecraft.The U.S. Federal Aviation Administration (FAA) examined all the corrections made to Starship before approving the March 14 flight. The FAA said it was also investigating results of the latest flight.The tests are important for NASA and SpaceX. They permit engineers "to test key systems and processes in flight scenarios" in an attempt to gather data to support the continued development of Starship, said Lisa Watson-Morgan. She is the Program Manager for the Starship program at NASA's Marshall Space Flight Center in Huntsville, Alabama.SpaceX officials have said they plan to carry out at least six more test flights of Starship this year, if the company receives all necessary government approvals.{callout color="#f0ad4e"}I'm Bryan Lynn.Bryan Lynn wrote this story for VOA Learning English, based on reports from The Associated Press, Reuters and NASA.{/callout}{dotted startColor="#ff6c6c" endColor="#1989fa"/}Words in This Storymi.....{callout color="#50BFFF"}查看Words in This Story的完整内容请前往原文网站51voa {/callout}{dotted startColor="#ff6c6c" endColor="#1989fa"/}{callout color="#50BFFF"}本文翻译及音频朗读或下载请前往原文翻译网站51voa{/callout}本文摘抄自www.51voa.com ,相应的,本文不适用本站的 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 及本站相关转载说明。本文旨在帮助学生更好的进行课件演示及朗读,如侵犯了您的权益,请在本站侧栏与我联系,我将会及时处理并删除。
2024年03月26日
40 阅读
0 评论
1 点赞
2024-03-19
//====================================================================== // // Copyright (C) 2024 虹棠工作室 // All rights reserved // // filename :Class4 // description : None // // created by 唐崇峻 at 04/18/2024 23:03:47 // https://www.hongtangstudio.cn // //====================================================================== //题目:略 #include<stdio.h> #define M 71 int main() { int a[M][M] = {0}; int *p=&a[35][36]; char dir='N'; a[36][36]=1; for(int k=1; k<=11000; k++){ if((*p)%2==0){ (*p)++; if(dir=='N'){dir='E';p++;} else if(dir=='E'){dir='S';p+=M;} else if(dir=='S'){dir='W';p--;} else{dir='N';p-=M;} } else{ (*p)++; if(dir=='N'){dir='W';p--;} else if(dir=='W'){dir='S',p+=M;} else if(dir=='S'){dir='E',p++;} else {dir='N',p-=M;} } } for(int i=0; i<M; i++){ for(int j=0; j<M; j++){ printf("%2d", a[i][j]); } printf("\n"); } return 0; } /* output: 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 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 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 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 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 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 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 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 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 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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 2 5 7 91210 9 91112 9 81014152219 8 5 5 5 6 8 6 8 8 3 4 4 3 2 0 0 0 1 1 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 0 2 6 8 9 8 5 6 6 8111113151515212113 8 7 7 7 5 3 4 810 5 1 1 1 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 0 0 0 1 1 1 4 5 71110 6 5 5 811121415141412121614 9 6 6 4 3 3 6 8 3 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 0 0 0 0 0 0 2 3 3 3 1 3 8 9 9 7 71112141515141412 9131511 9 6 4 4 4 5 2 1 2 1 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 0 0 1 1 2 3 2 1 3 911 9 9 7 6 911131211111513 7111411 9 7 5 5 6 7 4 3 3 1 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 0 1 4 4 4 4 1 3101213151614 8 7 911 6 411181615121213 6 8 7 4 6 8 7 4 1 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 0 1 3 3 4 4 4 4 610111113141211 8 3 5 8 511141212101312 811 8 3 5 6 5 2 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 0 0 1 2 1 2 2 3 4 61010 9 6 6 81211 4 3 9 9111510 6 7 8 61014 9 6 5 5 6 2 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 0 0 0 0 2 6 6 3 1 4 9 9 7 4 813 8 7 8 8 7 7 81111 8 8 4 6 9 8 8 7 4 5 6 2 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 0 0 0 1 4 5 6 6 4 4 6 7 6 5 610 8 61011 8 9 6 5 910 9 4 5 6 4 9 9 7 6 1 1 2 1 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 1 4 4 2 5 9 7 4 6 7 6 6 91412 9 8 910121111151512 5 5 6 41011 9 8 3 3 3 1 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 1 4 4 6 9 5 4 7 9 9 8 917221914121310 8161718221410 6 5 71315 8 910 5 1 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 0 1 4 4 5 7 4 412151111101418182018151210192123231413 9 5 61113101010 5 1 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 0 1 4 4 4 6 4 4 913131010141414171915162219212318121013 9 610111212 8 4 1 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 0 1 4 4 4 6 4 1 4 910 9101115191920161824211513151210171710 9 9 6 6 6 2 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 0 0 1 4 4 4 6 4 1 5 8 7111312132124202025261917201915172116 7 5 5 2 2 2 1 2 1 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 1 4 4 4 6 4 4 7 6 51218141221231919273221243326192117 8 6 4 4 4 4 4 3 3 1 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 1 4 4 4 6 5 5 7 5 2 716161824231915202325282921192416 8 5 2 1 4 4 4 4 1 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 0 1 4 4 4 6 6 7 6 4 3 71625272819151619232123221611151813 5 2 0 1 1 1 1 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 0 0 1 4 4 4 6 6 7 6 3 918252324241512141822232115 9 9 91112 8 2 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 0 0 0 0 0 0 0 1 3 3 4 6 6 7 5 410172118141512111313141918 9 7101310 6 6 3 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 0 0 0 0 0 0 0 1 3 3 4 6 6 8 7 5 6 913131311 91013141213 8 814111313 5 6 6 2 2 1 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 0 0 0 0 0 1 4 7 5 2 5 6 5 510141111121412121513 9 7 6111811 7 8 7 7 3 3 4 1 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 0 0 0 0 1 4 6 4 3 3 1 1 5131312131315 9 91310 6 9 8 51514 910 5 4 4 4 4 1 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 0 0 0 1 4 4 2 5 6 2 0 1 51211101613 8 6 611 7 6 9 9 7 915 9 6 4 1 4 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 3 6 6 5 810 6 3 6 5 4 4 1 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 4 3 5 8 7 7 6 7 9 7 2 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 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 1 3 6 6 5 810 7 5 6 3 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 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 1 4 3 4 5 7 6 0 3 4 1 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 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 1 3 3 2 3 3 2 4 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 */
2024年03月19日
58 阅读
0 评论
0 点赞
2024-03-04
此内容被密码保护
加密文章,请前往内页查看详情
2024年03月04日
8 阅读
0 评论
0 点赞
2024-01-17
板载天线介绍
引言板载天线是一种直接利用印刷电路板(PCB)作为介质的天线,通过PCB工艺实现,不需要单独组装天线,因此具有不易触碰损坏和组装方便的特点。这种天线广泛应用于工作在2.4GHz频段的无线模块,如WiFi模块、蓝牙模块、ZigBee模块等。板载天线的设计和种类板载天线的设计需要考虑天线的性能和成本,常见的设计形式有平面倒F型天线(PIFA)、曲流型天线和陶瓷天线等。其中,倒F型天线是一种常见的低成本设计方式,它通常放置在PCB顶层,并且需要保证天线周围的区域是净空区,以减少干扰。曲流型天线的长度一般比四分之一波长稍长,其长度由几何拓扑空间及敷地区决定。陶瓷天线则是利用陶瓷材料的高介电常数来实现天线的设计。板载天线的性能和优缺点板载天线的优点在于成本低、不需要单独组装天线、不易触碰损坏和组装方便。然而,与外接天线相比,板载天线容易受到主板上的干扰,效率相对较低,因此在某些应用场合可能会牺牲性能。对于近距离数据传输,板载天线和外接天线的效果可能相差不大,但在远距离传输时,外接天线会有明显的优势。板载天线在无线通信中的应用板载天线广泛应用于各种无线通信设备中,如无线路由器、WiFi模块、蓝牙模块等。在物联网应用中,板载天线也发挥着重要作用,如SKYLAB推出的UART接口WiFi模块和低功耗IoT UART串口透传WiFi模块等。这些模块内部集成了操作系统,支持串口透传和AT指令控制,可实现设备的联网功能。口语化描述板载天线就像是印刷电路板上的一种“隐形”天线,它不像我们平时看到的那种突出在设备外面的天线。因为它直接设计在电路板上,所以不需要额外的空间来安装,这样可以让设备更小巧,更方便携带。想象一下,你的手机或者无线路由器,如果没有那个长长的天线,而是把天线“藏”在了设备的内部,这样是不是感觉更简洁,更不容易被损坏呢?板载天线就是这样的一种设计。这种天线通常用在无线通信设备上,比如WiFi、蓝牙、ZigBee等无线技术。它的好处是成本低,不需要额外的组装步骤,而且因为天线是内置的,所以设备更耐用,不那么容易坏。但是,板载天线也有它的局限性。它的信号传输距离通常不如外置天线那么远,而且在一些复杂的环境中,比如有很多金属或者电子设备的地方,它的信号可能会受到干扰。总的来说,板载天线是一个让无线设备更小巧、更方便的设计,适合用在不需要太长传输距离的场合。具体作用及总结集成与简化:板载天线将天线结构与PCB板融为一体,省去了传统外部天线的装配步骤,简化了制造过程,降低了成本。空间节省:对于空间受限的应用场合,板载天线不占用额外空间,这对于便携设备和紧凑型产品尤为重要。防护与稳定:由于天线与PCB一体化,它可以得到PCB板的保护,减少外界环境对天线的损害,如碰撞、潮湿等。性能适中:虽然板载天线的性能可能不如外接天线,尤其是在信号方向性和效率方面,但对于许多应用场景来说,这种性能损失是可以接受的。易于调试:板载天线通常在设计和制造PCB时就已经考虑到天线性能,因此可以通过PCB设计软件进行仿真和调试,以确保天线性能满足要求。应用广泛:板载天线广泛应用于WiFi模块、蓝牙模块、ZigBee模块等,特别是在2.4GHz频段的无线通信模块中。在实际应用中,板载天线的设计和制造需要遵循一定的射频工程原则,确保天线的阻抗匹配、辐射特性、以及与其他电路的兼容性。通过精心设计的PCB布局和天线结构,可以实现在满足成本和空间要求的同时,获得尽可能好的无线通信性能。
2024年01月17日
90 阅读
0 评论
0 点赞
2024-01-10
「鸿蒙入门」1_TS基础语法简述
{message type="info" content="本篇主要讲述的是TS的语法基础和TS在ArkTS中的应用(区别)如果您有足够的基础,可以跳过本篇"/}一、初识ArkTS语言ArkTS是HarmonyOS优选的主力应用开发语言。ArkTS围绕应用开发在TypeScript(简称TS)生态基础上做了进一步扩展,继承了TS的所有特性,是TS的超集。因此,在学习ArkTS语言之前,建议开发者具备TS语言开发能力。当前,ArkTS在TS的基础上主要扩展了如下能力:基本语法:ArkTS定义了声明式UI描述、自定义组件和动态扩展UI元素的能力,再配合ArkUI开发框架中的系统组件及其相关的事件方法、属性方法等共同构成了UI开发的主体。状态管理:ArkTS提供了多维度的状态管理机制。在UI开发框架中,与UI相关联的数据可以在组件内使用,也可以在不同组件层级间传递,比如父子组件之间、爷孙组件之间,还可以在应用全局范围内传递或跨设备传递。另外,从数据的传递形式来看,可分为只读的单向传递和可变更的双向传递。开发者可以灵活地利用这些能力来实现数据和UI的联动。渲染控制:ArkTS提供了渲染控制的能力。条件渲染可根据应用的不同状态,渲染对应状态下的UI内容。循环渲染可从数据源中迭代获取数据,并在每次迭代过程中创建相应的组件。数据懒加载从数据源中按需迭代数据,并在每次迭代过程中创建相应的组件。未来,ArkTS会结合应用开发/运行的需求持续演进,逐步提供并行和并发能力增强、系统类型增强、分布式开发范式等更多特性。{card-describe title="tips"}TypeScript 的定位是静态类型语言,在写代码阶段就能检查错误,而非运行阶段。类型系统是最好的文档,增加了代码的可读性和可维护性。{/card-describe}二、基本语法(一)定义格式:关键字 变量名:类型 = 值关键字:var、let、constvar myname1:string = "hongtang"//不具备块限制(类似于全局变量) let myname2:string = "hongtang"//对应块级作用域(类似于局部变量) const myname3:string = "hongtang"//表示常量类型:string、boolean、number、anylet mystring:string = "hongtang"//仅能存储字符串 let mybool:boolean = false//仅能存储布尔值 let mynumber:number = 123//仅能存储数字 let myany:any = "hongtang"//可存储任意类型定义单一类型数组方式let mylist1:Array<string> = ["ht0","ht1","ht2"]//用 Array<类型> 表示数组 let mylist2:string[] = ["ht3","ht4","ht5"]//用 类型[] 表示数组定义联合类型let mystrandnum:string | number = "a"//用 | 隔开表示多种类型 let mylist5:any = "hongtang"//可存储任意类型 let mylist3:Array<string | number> = ["ht0",123,"ht1"]//用 | 隔开表示能多种类型的数组 let mylist4:(string | number)[] = ["ht2",456,"ht3"]//用 ()和| 表示能多种类型的数组(二)枚举定义//无值 enum ht1{ "A","B","C" } //有值 enum ht1{ "A" = 1, "B" = 2, "C" = 3 }访问ht1.A ht2["A"]打印console.log(ht1.A)//在ArkTS开发环境下,仅能打印字符串类型 console.log(ht1.A.toString())//或强制转换为字符串类型后打印(三)对象定义//固定类型 let myinf1 = { name:"hongtang", age:18 }//无法再添加属性 //指定类型和可选类型 let myinf2:{name:string,age:number,location?:string} = { name:"hongtang", age:18 }//location?标识location属性可选,无法再添加属性 //指定接口 interface IOht{ name:string, age:number, location?:string, [propName:string]:any//表示可添加任意类型属性属性 } //实例化 let myinf3:IOht = { name:"hongtang", age:"18" }扩展属性并赋值myinf3.country = "China"(四)判断===和==的区别"2" == 2//在TS中,表示只判断值不判断类型,结果为true "1" === 1//在TS中,表示判断类型和值,结果为falseif_else判断let order_type:number = 3 if(order_type===1){ console.log("已付款") }else if(order_type===2){ console.log("已发货") }else{ console.log("已完成") }switc判断let order_type:number = 3 switch (order_type){ case 1: console.log("已付款"); break; case 2: console.log("已发货"); break; case 3: console.log("已完成"); break; default : console.log('默认') }(五)for循环let datalist:string[]= ["华为mate60","华为mate60Pro","华为nova"] for(let i=0;i<datalist.length;i++){ console.log(datalist[i]); }//定义i并规定初始值,满足条件,递增 console.log("-------------------") for(let i in datalist){ console.log(datalist[i]); }//此处i是从0开始增加的 console.log("-------------------") for(let i of datalist){ console.log(i); }//此处i即表示确切的内容而不是键(六)函数定义//普通函数 function test1(){ console.log("test1-普通") } //箭头函数 const test2 = ()=>{ console.log("test2-箭头") } //指定参,返回值 const test3 = (state:number):string=>{ let text:string = "" switch (state){ case 1: text = "已付款" break; case 2: text = "已发货" break; case 3: text = "已完成" break; default : text="默认" } return text }//state:传入参数名称,number:传入参数类型,string:返回参数类型调用test1() test2() test3(2)(七)类//定义类 class person{ public name:string; protected age:number; private country:string;//三种不同修饰词 constructor(name:string,age:number,country:string){ this.name = name; this.age = age; this.country = country; }//构造函数,赋值 //类的成员方法 say():string{ return this.name; } } //实例化 let p = new person("hongtang",18,"China"); console.log(p.name); //继承并添加项,即为person的子类 class student extends person{ schollName :string; constructor(name:string,age:number,country:string,school:string){ super(name,age,country); this.schollName = school; } say():string{ return this.name+"----"+this.age+"--"+this.schollName; } } //实例化 let s = new student("hongtang",18,"China","学校名字"); console.log(s.say());(八)接口interface IContainer{ render() } class Tabbar implements IContainer{ render(){ console.log("选项卡渲染") } } class MySwiper implements IContainer{ render(){ console.log("轮播渲染") } } function init(container:IContainer){ container.render() } init(new MySwiper()) init(new Tabbar())(九)泛型class Cache<T> { // 此处T可用任意一个大写字母表示 // private map:Map<string,T> = new Map() private map = {} setCache(key:string,value:T){ this.map[key] = value } getCache(key:string):T{ return this.map[key] } } let obj = new Cache<string>() obj.setCache("name","kerwin") console.log(obj.getCache("name"))(十)引用{tabs}{tabs-pane label="Index.ets"}import Obj,{test1,test2 as TEST2} from '../01-ts/typescript.ts' //Obj是可以直接随便取的 //{test1}必须和子文档中导出的名称一样,如果要起别名,参考test2 console.log(Obj.name) test1() TEST2() //日志: //... app log: hongtang //... app log: test1 //... app log: test2{/tabs-pane}{tabs-pane label="../01-ts/typescript.ts"}const obj = { name:"hongtang", age:18 } function test1(){ console.log("test1") } function test2(){ console.log("test2") } export default obj//默认导出 export {test1, test2}//按需导出{/tabs-pane}{/tabs}
2024年01月10日
31 阅读
0 评论
0 点赞
2024-01-10
「鸿蒙入门」0_前情提要
鸿蒙开发工具主要使用的是HUAWEI DevEco Studio(获取工具请单击链接下载,以下简称DevEco Studio),是基于IntelliJ IDEA Community开源版本打造,为运行在HarmonyOS和OpenHarmony系统上的应用和服务(以下简称应用/服务)提供一站式的开发平台。作为一款开发工具,除了具有基本的代码开发、编译构建及调测等功能外,DevEco Studio还具有如下特点:高效智能代码编辑:支持ArkTS、JS、C/C++等语言的代码高亮、代码智能补齐、代码错误检查、代码自动跳转、代码格式化、代码查找等功能,提升代码编写效率。更多详细信息,请参考编辑器使用技巧。低代码可视化开发:丰富的UI界面编辑能力,支持自由拖拽组件和可视化数据绑定,可快速预览效果,所见即所得;同时支持卡片的零代码开发,降低开发门槛和提升界面开发效率。更多详细信息,请参考使用低代码开发应用/服务。多端双向实时预览:支持UI界面代码的双向预览、实时预览、动态预览、组件预览以及多端设备预览,便于快速查看代码运行效果。更多详细信息,请参考使用预览器预览应用/服务界面效果。多端设备模拟仿真:提供HarmonyOS本地模拟器,支持手机等设备的模拟仿真,便捷获取调试环境。更多详细信息,请参考使用模拟器运行应用/服务。{card-describe title="tips"}具体的安装和环境搭建请参考官方开发文档。本系列将全程使用DevEco Studio工具。{/card-describe}
2024年01月10日
26 阅读
0 评论
0 点赞
2024-01-06
沉金工艺介绍
沉金工艺,又称化学镀金工艺,是一种在电子电路板(PCB)表面处理中常用的技术,旨在提高电路板的导电性、抗氧化性和耐腐蚀性。这种工艺在PCB的铜质表面上沉积一层金,这层金不仅能够提供良好的电气连接,还能保护铜表面不受氧化,从而延长电路板的使用寿命。沉金工艺的基本步骤包括:前处理:这个阶段包括除油、微蚀、活化和后浸。目的是去除铜表面的氧化物和油脂,糙化铜表面以增加金层的附着力。沉镍:在前处理之后,首先在铜表面上沉积一层镍,这层镍作为金层的底层,可以提高金层的附着力和均匀性。沉金:在镍层上沉积金层,这是通过将PCB板浸入含有金离子的化学溶液中实现的。金层的厚度通常比电镀金层要厚,可以达到0.025-0.1微米。后处理:包括废金水洗、DI水洗和烘干,以去除残留的化学物质,确保金层的纯净和干燥。沉金工艺的优点包括:金层厚度均匀,可以提高电路板的平整度和尺寸精度。金层光亮度高,可以提高电路板的外观质量。金层与焊接材料的相容性好,可以提高焊接质量。金层的导电性能好,可以提高电路板的传导性能。沉金工艺广泛应用于高端电子产品、计算机、通讯设备和精密仪器等领域,特别是在要求高可靠性和高精度焊接的场合。然而,沉金工艺的成本较高,工艺复杂性也较高,因此在成本敏感或质量要求较低的应用中,可能会选择其他类型的表面处理工艺。
2024年01月06日
106 阅读
0 评论
1 点赞
2023-12-12
「题解」航电ACM2001-计算两点间的距离
Creation:2023/12/10 17:00:27 Problem ID:2001Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。Input输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。Output对于每组输入数据,输出一行,结果保留两位小数。Sample Input0 0 0 1 0 1 1 0Sample Output1.00 1.41AuthorlcySourceC语言程序设计练习(一)Solution用勾股定理然后计算输出即可#include<stdio.h> #include<math.h> int main() { double a,b,c,d; while(scanf("%lf%lf%lf%lf",&a,&b,&c,&d) != EOF) printf("%.2lf\n",sqrt((a-c)*(a-c)+(b-d)*(b-d))); return 0; }
2023年12月12日
68 阅读
0 评论
0 点赞
2023-12-12
「Solution」航电ACM2000-ASCII码排序
Creation:2023/12/10 16:09:49 Problem ID:2000Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output对于每组输入数据,输出一行,字符中间用一个空格分开。Sample Inputqwe asd zxcSample Outpute q w a d s c x zAuthorlcySourceC语言程序设计练习(一)Solution#include<stdio.h> int main() { char a[3],t;//用一维数组存储 while(scanf("%s",&a) != EOF)//以字符串的方式按行读入 { for(int i=0;i<=1;i++)//冒泡排序 for(int j=i+1;j<=2;j++) { if(a[i]>a[j]) { t = a[i];a[i] = a[j];a[j] = t; } } printf("%c %c %c\n",a[0],a[1],a[2]); } return 0; }
2023年12月12日
27 阅读
0 评论
0 点赞
2023-12-12
「Solution」A+B Problem N-VIII
Creation:2023/12/10 14:31:38 这章的题都挺简单,是对输入输出的练习,直接附答案了。但也欢迎大家评论区留言和讨论~A + B ProblemProblem ID:1000Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionCalculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2AuthorHDOJSolution注意,这里题目要求是Process to end of file.,故要用EOF判断输入的结束。#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b) != EOF) printf("%d\n",a+b); return 0; }A+B for Input-Output Practice (I)Problem ID:1089Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners.You must have found that some problems have the same titles with this one, yes, all these problems were designed for the same aim.InputThe input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.OutputFor each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.Sample Input1 5 10 20Sample Output6 30AuthorlcySolution#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b) != EOF) printf("%d\n",a+b); return 0; }A+B for Input-Output Practice (II)Problem ID:1090Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a space, one pair of integers per line.OutputFor each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.Sample Input21 510 20Sample Output630AuthorlcySolution#include<stdio.h> int main() { int n,a,b; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%d%d",&a,&b); printf("%d\n",a+b); } return 0; }A+B for Input-Output Practice (III)Problem ID:1091Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to Calculate a + b.InputInput contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing 0 0 terminates the input and this test case is not to be processed.OutputFor each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.Sample Input1 5 10 20 0 0Sample Output6 30AuthorlcySolution#include<stdio.h> int main() { int a,b,c; while(true) { scanf("%d%d",&a,&b); if(a ==0 && b==0) break; printf("%d\n",a+b); } return 0; }A+B for Input-Output Practice (IV)Problem ID:1092Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to Calculate the sum of some integers.InputInput contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A test case starting with 0 terminates the input and this test case is not to be processed.OutputFor each group of input integers you should output their sum in one line, and with one line of output for each line in input.Sample Input4 1 2 3 4 5 1 2 3 4 5 0Sample Output10 15AuthorlcySolution#include<stdio.h> int main() { int n,a,sum=0; while(true) { scanf("%d",&n); if(n == 0) break; for(int i=1;i<=n;i++) { scanf("%d",&a); sum += a; } printf("%d\n",sum); sum = 0; } return 0; }A+B for Input-Output Practice (V)Problem ID:1093Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line.OutputFor each group of input integers you should output their sum in one line, and with one line of output for each line in input.Sample Input2 4 1 2 3 4 5 1 2 3 4 5Sample Output10 15AuthorlcySolution#include<stdio.h> int main() { int n,m,a,sum=0; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%d",&m); for(int j=1;j<=m;j++) { scanf("%d",&a); sum += a; } printf("%d\n",sum); sum = 0; } return 0; }A+B for Input-Output Practice (VI)Problem ID:1094Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains multiple test cases, and one case one line. Each case starts with an integer N, and then N integers follow in the same line.OutputFor each test case you should output the sum of N integers in one line, and with one line of output for each line in input.Sample Input4 1 2 3 4 5 1 2 3 4 5Sample Output10 15AuthorlcySolution#include<stdio.h> int main() { int n,a,sum=0; while(scanf("%d",&n) != EOF) { for(int i=1;i<=n;i++) { scanf("%d",&a); sum += a; } printf("%d\n",sum); sum = 0; } return 0; }A+B for Input-Output Practice (VII)Problem ID:1095Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to Calculate a + b.InputThe input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.OutputFor each pair of input integers a and b you should output the sum of a and b, and followed by a blank line.Sample Input1 5 10 20Sample Output630AuthorlcySolution#include<stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b) != EOF) printf("%d\n",a+b); return 0; }A+B for Input-Output Practice (VIII)Problem ID:1096Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line.OutputFor each group of input integers you should output their sum in one line, and you must note that there is a blank line between outputs.Sample Input3 4 1 2 3 4 5 1 2 3 4 5 3 1 2 3Sample Output10 15 6AuthorlcySolution#include<stdio.h> int main() { int n,m,a,sum=0; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%d",&m); for(int j=1;j<=m;j++) { scanf("%d",&a); sum += a; } printf("%d\n\n",sum); sum = 0; } return 0; }Sum ProblemProblem ID:1001Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one integer per line.OutputFor each case, output SUM(n) in one line, followed by a blank line. You may assume the result will be in the range of 32-bit signed integer.Sample Input1 100Sample Output15050AuthorDOOM IIISolution#include<stdio.h> int main() { int n,sum=0; while(scanf("%d",&n) != EOF) { for(int i=1;i<=n;i++) sum+=i; printf("%d\n\n",sum); sum = 0; } return 0; }
2023年12月12日
29 阅读
0 评论
0 点赞
2023-09-16
虹棠工作室原创工具
序言这里将会列出虹棠工室原创的所有原创软件,插件及各种小工具。如果觉得好,欢迎大家点击对应标题即可查看使用方法及下载链接。这是对我最大的认可!当然,我也衷心感谢那些给予支持的人。微打开扫一扫,扫描下方赞赏码,无需再次登录注册,即可给予支持!经站长同意,方可转载,转载请注明出处及原文链接软件单词记忆背诵辅助工具一途壁纸
2023年09月16日
43 阅读
0 评论
0 点赞
2023-07-13
「题解」「NOIP1998 普及组」 三连击
好久没做题了啊没想到栽到这了。。。记录于此,警示于己题目背景本题为提交答案题,您可以写程序或手算在本机上算出答案后,直接提交答案文本,也可提交答案生成程序。题目描述将 1,2,…,9 共 9 个数分成 3 组,分别组成 3 个三位数,且使这 3 个三位数构成 1 : 2 : 3 的比例,试求出所有满足条件的 3 个三位数。输入格式无输出格式若干行,每行 3 个数字。按照每行第 1 个数字升序排列。样例 #1样例输入 #1无样例输出 #1192 384 576 * * * ... * * * (剩余部分不予展示)。然后,我非常弱智的写了这个↓#include<stdio.h> int main() { int all[800],tem = 0; for(int i = 1;i <= 9;i++) { for(int j = 1;j <= 9;j++) { for(int k = 1;k <= 9;k++) { all[tem] = i * 100 + j * 10 + k; tem++; } } } for(int i = 1;i <= tem-2;i++) { for(int j = i + 1;j <= tem-1;j++) { for(int k = j + 1;k <= tem;k++) { if(all[i] * 3 == all[j] * 2 && all[j] * 2 == all[k]) printf("%d %d %d\n",all[i],all[j],all[k]); } } } return 0; }其实挺简单的,不解释了,AC代码↓肯定还有更简洁的代码,但。。。懒#include<stdio.h> int dcp[9]; bool find(int n,int tem) { for(int i=1;i<=tem;i++) { if(dcp[i]==n) return true; } return false; } int main() { bool flag=false; int num=192,numt; for(int i = 1;i <= 136;i++) { for(int j=0;j<=10;j++) dcp[j] = 0; if(num*2<=981 && num*3<=981) { numt = num*1000000+num*2000+num*3; for(int tem=1;tem<=9;tem++) { if(find(numt%10,tem)) { flag=true; break; } dcp[tem] = numt%10; if(numt!=0) numt = numt/10; } if(flag) { flag=false; num++; continue; } printf("%d %d %d\n",num,num*2,num*3); } num++; } return 0; }总结:审题不够认真仔细狂妄自大,认为简单题就可以松懈记录于此,警示于己,愿重新开启新的征程!编辑于2023-07-11 23:21:44更新2023-07-13 19:46:18 好吧,还是忍不住翻了下题解,确实有更短的()不过他是把判断叠起来了,也,也算是短吧以下代码来自洛谷用户@WilliamEdward#include <stdio.h> int main() { int a,b,c; for(a=123;a<=333;a++) { b=a*2; c=a*3; if((a/100+a/10%10+a%10+b/100+b/10%10+b%10+c/100+c/10%10+c%10==1+2+3+4+5+6+7+8+9)&&((a/100)*(a/10%10)*(a%10)*(b/100)*(b/10%10)*(b%10)*(c/100)*(c/10%10)*(c%10)==(1)*(2)*(3)*(4)*(5)*(6)*(7)*(8)*(9))) printf("%d %d %d\n",a,b,c); } return 0; }
2023年07月13日
22 阅读
0 评论
0 点赞
1
2