素数指除了能被1和自身整除外不能被大于1小于自身的任意自然数整除的数。补充以下代码以实现如下功能:用户输入一个自然数,程序判断是否是素数,如是,则输出" is a su shu",否则不输出。 num=eval(input("Please Enter a number, the computer will judge")) 1 2 if num % divisor == 0: 3 4 print(num," is a su shu")
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】The speaker in the prepared speech should focuse on a limited number of main points.
【单选题】听力原文:M: Miss, can I interest you in the pork special we’re serving tonight? It’s only $7.99, half the usual price, and it’s very tasty. W: Oh, really? I’ll try it. Q: What does the man say about the d...