intmain(void){delay_init();//延时函数初始化NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//设置NVIC中断分组2:2位抢占优先级,2位响应优先级uart_init(115200);//串口初始化为115200LED_Init();//初始化与LED连接的硬件接口TM1637_Init();while(1){delay_ms(1);//延时1msTM1637_NixieTubeDisplay();TM1637_NixieTubeDisplayChar(1,0);//第一位显示1TM1637_NixieTubeDisplayChar(2,1);//第二位显示2TM1637_NixieTubeDisplayChar(3,2);//第三位显示3TM1637_NixieTubeDisplayChar(4,3);//第四位显示4}}
2024/6/28 16:21:43 2.55MB STM32 TM1637 四段数码管
1
1.掌握自顶向下语义分析中语义子程序的添加过程;
2.掌握“拉链”、“回填”操作的原理及实现;
3.根据MiniC的上下文无关文法,对赋值语句、算术表达式、关系表达式、if-else语句、while语句、布尔表达式(选作内容)等语法结构添加语义子程序;
4.针对测试代码,输出四元式序列。
5.以文件流的形式读入要分析的C语言程序;
6.使用四元式类,将四元式对象放置在四元式线性表(如:ArrayList)中;
7.自行测试多组本次实习语法结构(赋值语句、普通表达式、关系表达式、if-else语句、while语句),将四元式序列输出到文件中。
2024/6/16 14:40:03 10KB 编译原理 javacc 语义分析
1
无论您刚接触电脑还是一个有经验的程序员,本书都将有助您学习使用Python语言。
目录表前言本书的读者本书的由来本书目前的状况官方网站约定条款欢迎给我反馈值得思考的一些东西1.介绍简介Python的特色概括为什么不使用Perl?程序员的话2.安装PythonLinux和BSD用户Windows®用户概括3.最初的步骤简介使用带提示符的解释器挑选一个编辑器使用源文件输出它如何工作可执行的Python程序获取帮助概括4.基本概念字面意义上的常量数字符串变量标识符的命名数据类型对象输出它如何工作逻辑行与物理行缩进概括5.运算符与表达式简介运算符运算符优先级计算顺序结合规律表达式使用表达式概括6.控制流简介if语句使用if语句它如何工作while语句使用while语句for循环使用for语句break语句使用break语句continue语句使用continue语句概括7.函数简介定义函数函数形参使用函数形参局部变量使用局部变量使用global语句默认参数值使用默认参数值关键参数使用关键参数return语句使用字面意义上的语句DocStrings使用DocStrings概括8.模块简介使用sys模块字节编译的.pyc文件from..import语句模块的__name__使用模块的__name__制造你自己的模块创建你自己的模块from..importdir()函数使用dir函数概括9.数据结构简介列表对象与类的快速入门使用列表元组使用元组元组与打印语句字典使用字典序列使用序列引用对象与引用更多字符串的内容字符串的方法概括10.解决问题——编写一个Python脚本问题解决方案版本一版本二版本三版本四进一步优化软件开发过程概括11.面向对象的编程简介self类创建一个类对象的方法使用对象的方法__init__方法使用__init__方法类与对象的变量使用类与对象的变量继承使用继承概括12.输入/输出文件使用文件储存器储存与取储存概括13.异常错误try..except处理异常引发异常如何引发异常try..finally使用finally概括14.Python标准库简介sys模块命令行参数更多sys的内容os模块概括15.更多Python的内容特殊的方法单语句块列表综合使用列表综合在函数中接收元组和列表lambda形式使用lambda形式exec和eval语句assert语句repr函数概括16.接下来学习什么?
2024/6/15 13:07:56 1.27MB Phyton 教程
1
从mysql官网上下载mysql-server_5.7.21-1ubuntu14.04_amd64.deb-bundle.tar,然后进行离线安装,解压该安装包,会出现11个依赖包,按照顺序依次使用sudodpkg-i进行安装,中间会报错,显示缺少相应的依赖,具体如下:*******@ubuntu:/opt/mysql$sudodpkg-imysql-community-client_5.7.21-1ubuntu14.04_amd64.debSelectingpreviouslyunselectedpackagemysql-community-client.(Readingdatabase...208518filesanddirectoriescurrentlyinstalled.)Preparingtounpackmysql-community-client_5.7.21-1ubuntu14.04_amd64.deb...Unpackingmysql-community-client(5.7.21-1ubuntu14.04)...dpkg:dependencyproblemspreventconfigurationofmysql-community-client:mysql-community-clientdependsonlibaio1(>=0.3.93);however:Packagelibaio1isnotinstalled.dpkg:errorprocessingpackagemysql-community-client(--install):dependencyproblems-leavingunconfiguredProcessingtriggersforman-db(2.6.7.1-1ubuntu1)...Errorswereencounteredwhileprocessing:mysql-community-client和********@ubuntu:/opt/mysql$sudodpkg-imysql-community-server_5.7.21-1ubuntu14.04_amd64.debSelectingpreviouslyunselectedpackagemysql-community-server.(Readingdatabase...208598filesanddirectoriescurrentlyinstalled.)Preparingtounpackmysql-community-server_5.7.21-1ubuntu14.04_amd64.deb...Unpackingmysql-community-server(5.7.21-1ubuntu14.04)...dpkg:dependencyproblemspreventconfigurationofmysql-community-server:mysql-community-serverdependsonlibmecab2(>=0.996-1.1);however:Packagelibmecab2isnotinstalled.dpkg:errorprocessingpackagemysql-community-server(--install):dependencyproblems-leavingunconfiguredProcessingtriggersforman-db(2.6.7.1-1ubuntu1)...Processingtriggersforureadahead(0.100.0-16)...ureadaheadwillbereprofiledonnextrebootErrorswereencounteredwhileprocessing:mysql-community-server附上依赖包安装顺序:1.mysql-common_5.7.21-1ubuntu14.04_amd64.deb2.libmysqlclient20_5.7.21-1ubuntu14.04_amd64.deb3.libmysqlclient-dev_5.7.21-1ubuntu14.04_amd64.deb4.libmysqld-dev_5.7.21-1ubuntu14.04_amd64.deb
2024/6/9 19:58:15 245KB mysql 离线安装 依赖包
1
这是我自己做的一些labview的小程序,方便初学者使用和学习。
包括如下:case求平方根平均值最大值创建数组随机数李萨如图形公式节点的使用温度体积等
2024/6/3 11:04:55 78KB labview 李萨如 随机数 平均值
1
Sharinghealthcaredatabetweeninstitutionsischallenging.Heterogeneousdatastructuresmayprecludecompatibility,whiledisparateuseofhealthcareterminologylimitsdatacomprehension.Evenifstructureandsemanticscouldbeagreedupon,bothsecurityanddataconsistencyconcernsabound.Centralizeddatastoresandauthorityprovidersareattractivetargetsforcyberattack,andestablishingaconsistentviewofthepatientrecordacrossadatasharingnetworkisproblematic.InthisworkwepresentaBlockchain-basedapproachtosharingpatientdata.Thisapproachtradesasinglecentralizedsourceoftrustinfavorofnetworkconsensus,andpredicatesconsensusonproofofstructuralandsemanticinteroperability.
2024/5/26 3:19:09 402KB 区块链 医疗 交易网络
1
defGMM_algorithm(iterMax,gmm,dataset):'''高斯混合聚类算法:paramiterMax:最大迭代次数:paramgmm:保存gmm模型的数据:return:簇划分结果'''step=0m=len(dataset)flagMat=np.mat(np.zeros((m,1)))#保存每个样本的簇标记lateProbMat=np.mat(np.zeros((m,3)))#保存后验概率whilestep3):k+=1print(k)mark=['or','ob','og','ok','^r','+r','sr','dr','<r','pr']#画出所有样例点属于同一分类的绘制同样的颜色foriinrange(numSamples):
2024/5/18 3:22:23 183KB python聚类
1
%用遗传算法进行简单函数的优化clearbn=22;%个体串长度inn=50;%初始种群大小gnmax=200;%最大代数pc=0.75;%交叉概率pm=0.05;%变异概率%产生初始种群s=round(rand(inn,bn));%计算适应度,返回适应度f和累积概率p[f,p]=objf(s);gn=1;whilegn<gnmax+1forj=1:2:inn%选择操作seln=sel(s,p);%交叉操作scro=cro(s,seln,pc);scnew(j,:)=scro(1,:);scnew(j+1,:)=scro(2,:);%变异操作smnew(j,:)=mut(scnew(j,:),pm);smnew(j+1,:)=mut(scnew(j+1,:),pm);ends=smnew;%产生了新的种群%计算新种群的适应度[f,p]=objf(s);%记录当前代最好和平均的适应度[fmax,nmax]=max(f);fmean=mean(f);ymax(gn)=fmax;ymean(gn)=fmean;%记录当前代的最佳个体x=n2to10(s(nmax,:));xx=-1.0+x*3/(power(2,bn)-1);xmax(gn)=xx;gn=gn+1endgn=gn-1;%绘制曲线subplot(2,1,1);plot(1:gn,[ymax;ymean]);title('历代适应度变化','fonts',10);legend('最大适应度','平均适应度');string1=['最终适应度',num2str(ymax(gn))];gtext(string1);subplot(2,1,2);plot(1:gn,xmax,'r-');legend('自变量');string2=['最终自变量',num2str(xmax(gn))];gtext(string2);
2024/5/9 7:19:44 106KB 遗传算法
1
原则英文版,总页数为586页,是完整的,此版本是我付费在别的网站上下载的ThankyoufordownloadingthisSimonSchusterebookGetaFreeebookwhenyoujoinourmailinglist.Plus,getupdatesonnewreleases,dealsrecommendedreads,andmorefromSimonSchusterClickbelowtosignupandseetermsandconditionsCLICKHERETOSIGNUPAlreadyasubscriber?Provideyouremailagainsowecanregisterthisebookandsendyoumoreofwhatyouliketoread.YouwillcontinuetoreceiveexclusiveoffersinyourinboxPRINCIPLESRAYDALIOsiMonSCHUSTERNEWYORKLONDONTORONTOSYDNEYNEWDELHIPARTIW豆EREIMCOMIINGFRON1MyCalltoAdventure:1949-19672CrossingtheThreshold:1967-19793MyAbyss:1979-19824MyRoadofTrials:1983-19945TheUltimateBoon:1995-20106ReturningtheBoon:2011-20157MyLastYearandMyGreatestChallenge:2016-20178LookingBackfromaHigherLevelPARTIILIFEPRINCIPLES1EmbraceRealityandDealwithIt2Usethe5-StepProcesstoGetWhatYouWantOutofLife3BeRadicallyOpen-Minded4UnderstandThatPeopleAreWiredVeryDifferently5LearnHowtoMakeDecisionsEffectivelyLifePrinciples:PuttingItAllTogetherSummaryandTableoflifePrinciplesPARTIIIWORKPRINCIPLESSummaryandTableofWorkPrinciplesTOGETTHECULTURERIGHT1TrustinRadicalTruthandRadicalTransparency2CultivateMeaningfulWorkandMeaningfulRelationships3CreateaCultureinWhichItIsOkaytoMakeMistakesandUnacceptableNottoLearnoem4GetandStayinSync5BelievabilityWeightYourDecisionMaking6RecognizeHowtoGetBeyondDisagreementsTOGETTHEPEOPLERIGHT7RememberThattheWHOIsMoreImportantthantheWhat8HireRight,BecausethePenaltiesforHiringWrongAreHuge9ConstantlyTrain,Test,Evaluate,andSortPeopleTOBUILDANDEVOLVEYOURMACHINE10ManageasSomeoneOperatingaMachinetoAchieveagoal11PerceiveandDon'tTolerateproblems12DiagnoseProblemstoGetatTheirrootcauses13DesignImprovementstoYourMachinetoGetAroundYourProblems14DoWhatYouSetOuttodo15USeToolsandProtocolstoShapeHowWorkIsDone16AndforHeaven'sSakeDontOverlookGovernanceWorkPrinciples:PuttingItAllTogetherACKNOWLEDGMENTSABOUTTHEAUTHORCONCLUSIONAPPENDIX.TOOLSANDPROTOCOLSFORBRIDGEWATERSIDEAMERITOCRACYBIBLIOGRAPHYINDEXToBarbara.thehalfmewhohasmademewholeformorethanfortyyearsINTRODUCTIONBeforeibegintellingyouwhatIthink,IwanttoestablishthatI'ma"dumbshit'whodoesntknowmuchrelativetowhatineedtoknowWhateversuccessI'vehadinlifehashadmoretodowithmyknowinghowtodealwithmynotknowingthananythingIknow.ThemostimportantthingIlearnedisanapproachtolifebasedonprinciplesthathelpsmefindoutwhat'strueandwhattodoaboutitI'mpassingalongtheseprinciplesbecauseiamnowatthestageinmylifewhichIwanttohelpothersbesuccessfulratherthantobemoresuccessfulmyself.Becausetheseprincipleshavehelpedmeandotherssomuch,Iwanttosharethemwithyou.It'suptoyoutodecidehowvaluabletheyreallyareandwhat,ifanythingyouwanttodowiththemPrinciplesarefundamentaltruthsthatserveasthefoundationsforbehaviorthatgetsyouwhatyouwantoutoflife.TheycanbeappliedagainandagaininsimilarsituationstohelpyouachieveyourgoalsEveryday,eachofusisfacedwithablizzardofsituationswemustrespondto.Withoutprincipleswewouldbeforcedtoreacttoallthethingslifethrowsatusindividually,asifwewereexperiencingeachofthemforthefirsttime.Ifinsteadweclassifythesesituationsintotypesandhavegoodprinciplesfordealingwiththemwewillmakebetterdecisionsmorequicklyandhavebetterlivesasaresult.Havingagoodsetofprinciplesislikehavingagoodcollectionofrecipesforsuccess.Allsuccessfulpeopleoperatebyrinciplesthathelpthembesuccessful,thoughwhattheychoosetobesuccessfulatvariesenormouslysotheirprinciplesvarTobeprincipledmeanstoconsistentlyoperatewithprinciplesthatcanbeclearlyexplained.Unfortunately,mostpeoplecantdothat.Andit'sveryrareforpeopletowritetheirprinciplesdownandsharethemThatisashame.IwouldlovetoknowwhatprinciplesguidedAlbertEinstein,SteveJobsWinstonChurchill,LeonardodaVinci,andotherssoIcouldclearlyunderstandwhattheyweregoingafterandhowtheyachieveditandcouldcomparetheirdifferentapproaches.I'dliketoknowwhichprinciplesaremostimportanttothepoliticianswhowantmetovoteforthemandtoalltheotherpeoplewhosedecisionsaffectme.Dowehavecommonprinciplesthatbindustogether-asafamly,asacommunity,asanation,asfriendsacrossnations?O1dowehaveopposingprinciplesthatdivideus?whatarethey?letsbespecificThisisatimewhenitisespeciallyimportantforustobeclearaboutourprinciplesMyhopeisthatreadingthisbookwillpromptyouandotherstodiscoveryourownprinciplesfromwhereveryouthinkisbestandideallywritetheedown.Doingthatwillallowyouandotherstobeclearaboutwhatyourprinciplesareandunderstandeachotherbetter.Itwillallowyoutoretinethemasyouencountermoreexperiencesandtoreflectonthem,whichwillhelpyoumakebetterdecisionsandbebetterunderstoodHAVINGYOUROWNPRINCIPLESWecomebyourprinciplesindifferentways.Sometimeswegainthemthroughourownexperiencesandreflections.Sometimesweacceptthemfromothers,likeourparents,orweadoptholisticpackagesofprinciples,suchasthoseofreligionsandlegalframeworksBecauseweeachhaveourowngoalsandourownnatures,eachofusmustchooseourownprinciplestomatchthem.Whileitisntnecessarilyabadthingtouseothers'principles,adoptingprincipleswithoutgivingthemmuchthoughtcanexposeyoutotheriskofactinginwaysinconsistentwithyourgoalsandyournature.Atthesametime,you,likeme,probablydontknoweverythingyouneedtoknowandwouldbewisetoembracethatfact.Ifyoucanthinkforyourselfwhilebeingopen-mindedinaclearheadedwaytofindoutwhatisbestforyoutodo,andifyoucansummonupthecouragetodoityouwillmakethemostofyourlife.Ifyoucantdothat,youshouldreflectonwhythatis,becausethat'smostlikelyyourgreatestimpedimenttogettingmoreofwhatyouwantoutoflifeThatbringsmetomyfirstprincipleThinkforyourselftodecide1,whatyouwant,2ywhatistrue,and3,whatyoushoulddotoachieve#1inlightof#2anddothatwithhumilityandopen-mindednesssothatyouconsiderthebestthinkingavailabletoyou.Beingclearonyourprinciplesisimportantbecausetheywillaffectallaspectsofyourlife,manytimesaday.Forexample,whenyouenterintorelationshipswithothers,yourprinciplesandtheirprincipleswilldeterminehowyouinteract.Peoplewhohavesharedvaluesandprinciplesgetlong.Peoplewhodontwillsufferthroughconstantmisunderstandingsandconflicts.Thinkaboutthepeopleyouareclosestto:Aretheirvaluesalignedwithyours?Doyouevenknowwhattheirvaluesorprinciplesare?Tooofteninrelationships,people'sprinciplesarentclear.ThisisespeciallyproblematicinorganizationswherepeopleneedtohavesharedprinciplestobesuccessfulBeingcrystalclearaboutmyprinciplesiswhyIlaboredsomuchovereverysentenceinthisbookTheprinciplesyouchoosecanbeanythingyouwantthemtobeaslongastheyareauthentic--i.e,aslongastheyreflectyourtruecharacterandvalues
2024/5/6 16:18:33 6.58MB 工作 生活
1
AsuswrtisthenameofthecommonfirmwareAsushasdevelopedfortheirvariousroutermodels.OriginallyforkedfromTomato,ithassincegrownintoaverydifferentproduct,removingsomemoretechnicalfeaturesthatwerepartofTomato,butalsoaddingneworiginalfeaturessuchassupportfordualWANs.Asuswrt-merlinisacustomizedversionofAsus'sfirmware.ThegoalistoprovidebugfixesandminorenhancementstoAsus'sfirmware,withalsoafewoccasionalfeatureadditions.Thisisdonewhileretainingthelookandfeeloftheoriginalfirmware,andalsoensuringthatthetwocodebasesremaincloseenoughsoitwillremainpossibletokeepupwithanynewfeaturesbroughtbyAsusintheoriginalfirmware.Thisproject'sgoalisNOTtodevelopyetanotherfirmwarefilledwithmanyfeaturesthatarerarelyusedbyhomeusers-thatisalreadycoveredbyotherexcellentprojectssuchasTomatoorDD-WRT.Thismoreconservativeapproachwillalsohelpensuringthehighestlevelofstabilitypossible.Priorityisgiventostabilityoverperformance,andperformanceoverfeatures.
2024/5/6 13:08:37 17.56MB n16,梅林
1
共 179 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡