为什么不能用x/2,而是用x%2

weixin_慕数据8230845
浏览 597回答 0
0回答

慕慕5436299

MKTTDWDCCPTUGPJZJJSSCCQTOHLYOYMPIJJSLILRBKHEFZPVSSVCFPSMCOAXUKKNNAKXJGTLOEBBKDQZWZJERDHHBOAFKEUDUHWYUAQDLIJGLUIVYFWZZGJRAKHGJTQCMPKDHGDANRBCPHXUWCTTAGGGAGOOGKQAAUKXDHNWWXFFEBONYWANAKKTQTAKQAANGTJNTHSFYISSPTXQXHXTMWGZZANVNNJIMJPWCTZJPPYCIOOBFJCRNPSPSBXBROXHENQTCEADIEUDGCTJMPYIXAQUQTJZVYVYUQTDGIWNWHCSVYUYHKUVMNQFIGDMCLHQZJTWFBXUKTFNXGQBQGQGWTVEULCEZJTQOKFIYHEORHKQGIFVXMVYISXGAQTQFOTJZENWMJMCEBXHLBDZWMJYVRURNCFVLHRHXZLFBKUDNJFCKFVXNKTJZIAWHXZCSBEHXGDSVRTQTXGWHRZGPOOYYQPEULHWZWSILHFASBKNKTQMVYIJEGPGPRBEHXIXTQENKTQAWQGCLIYUXTDOPXSUEUXGXNCRHKHDSISBRUWGVYHKNWMOLPXGJGCFVQGWKTBTCMVEGXTLNBLURBRGJZKAPFVFFPYVLGBEGWMVFUXNSHKNKBCMCSCWFIYJFUKSXNVVRLVYEOTQQGPLBXHKGDTPHPSBLHXTDFHKUPSPLNQSIZMPSOKOILVFHIRTDBXOLORBGKGVZXAHXNE

慕前端0235333

/ 是求商,%是求余数, 比如5%3,计算过程是:5除以3,商1余2,所以结果是5/3=1;5%3=2
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python