当前位置: 首页 > news >正文

建设网站需要哪些语言十大免费域名

建设网站需要哪些语言,十大免费域名,做网站编程,什么是信息流广告基础题 根据输入的成绩的范围打印及格 或者不及格。 score 58 if score > 90:print(及格) else:print(不及格)根据输入的年纪范围打印成年或者未成年&#xff0c;如果年龄不在正常范围内(0~150)打印这不是人!。 age 52 if 0 < age < 18:print(未成年) elif 18 &l…

基础题

  1. 根据输入的成绩的范围打印及格 或者不及格
score = 58
if score > 90:print('及格')
else:print('不及格')
  1. 根据输入的年纪范围打印成年或者未成年,如果年龄不在正常范围内(0~150)打印这不是人!
age = 52
if 0 < age < 18:print('未成年')
elif 18 <= age <= 150:print('成年')
else:print('这不是人')
  1. 输入两个整数a和b,若a-b的结果为奇数,则输出该结果,否则输出提示信息a-b的结果不是奇数
a = 12
b = 44
if (a-b) % 2 == 1:print(a-b)
else:print('a-b不是奇数')
  1. 使用for循环输出 0~100内所有3的倍数。
for x in range(0, 101, 3):print(x, end=' ')
  1. 使用for循环输出100~200内个位数或者十位数能被3整除的数。
for x in range(100, 201):if x % 10 % 3 == 0 or x // 10 % 10 % 3 == 0:print(x, end=' ')
  1. 使用for循环统计100~200中十位数是5的数的个数
count = 0
for x in range(100, 201):if x // 10 % 10 == 5:print(x, end=' ')count += 1
print()
print('个数:', count)  # 10
  1. 使用for循环打印50~150中所有能被3整除但是不能被5整除的数
for x in range(50, 151):if (x % 3 == 0) and (x % 5 != 0):print(x, end=' ')
  1. 使用for循环计算50~150中所有能被3整除但是不能被5整除的数的和
sum = 0
for x in range(50, 151):if (x % 3 == 0) and (x % 5 == 0):sum += x
print()
print(sum)  # 735
  1. 统计100以内个位数是2并且能够被3整除的数的个数。
count = 0
for x in range(100):if (x % 10 == 2) and (x % 3 == 0):count += 1
print()
print('100以内个位数是2并且能够被3整除的数的个数:', count)  # 3

进阶题

  1. 输入任意一个正整数,求他是几位数?

    注意: 这儿不能使用字符串,只能用循环

num = int(input('请输入一个正整数:'))
active = True
n = 1
while active:if num < 10 ** n:print('这是一个位数:', n)active = Falseelse:n += 1
  1. 打印出所有的水仙花数,所谓水仙花数是指一个三位数,其各位数字⽴方和等于该数本身。例如:153是

    ⼀个⽔仙花数,因为 1³ + 5³ + 3³ 等于 153。

for num in range(100,1000):if num == (num % 10) ** 3 + (num // 10 % 10) ** 3 + (num // 100) ** 3:print(num, end=' ')
  1. 判断指定的数是否是素数(素数就是质数,即除了1和它本身以外不能被其他的数整除的数)
num = int(input())
count = 0
for x in range(2, num):if num % x == 0:count += 1
if count == 0:print('是素数')
else:print('不是素数')
  1. 输出9*9口诀。 程序分析:分行与列考虑,共9行9列,i控制行,j控制列。
n = 1
for x in range(1, 10):for y in range(1, n + 1):print('{}x{}={}\t'.format(y, x, x * y), end='')print()n += 1
  1. 这是经典的"百马百担"问题,有一百匹马,驮一百担货,大马驮3担,中马驮2担,两只小马驮1担,问有大,中,小马各几匹?(可以直接使用穷举法)
for x in range(0, 34):for y in range(0, 50):for z in range(0, 100, 2):if 3 * x + 2 * y + 0.5 * z == 100 and x + y + z == 100:print('{}匹大马{}匹中马{}匹小马'.format(x, y, z))

文章转载自:
http://ashman.mcjp.cn
http://posthypnotic.mcjp.cn
http://bertha.mcjp.cn
http://soavemente.mcjp.cn
http://feneration.mcjp.cn
http://gelatinise.mcjp.cn
http://botswanian.mcjp.cn
http://southwesternmost.mcjp.cn
http://revealed.mcjp.cn
http://wolfkin.mcjp.cn
http://neckverse.mcjp.cn
http://olm.mcjp.cn
http://underpinning.mcjp.cn
http://rurigenous.mcjp.cn
http://curvicostate.mcjp.cn
http://finsteraarhorn.mcjp.cn
http://catsup.mcjp.cn
http://highstick.mcjp.cn
http://atreus.mcjp.cn
http://harmonica.mcjp.cn
http://singer.mcjp.cn
http://formfitting.mcjp.cn
http://holily.mcjp.cn
http://weaponization.mcjp.cn
http://cobber.mcjp.cn
http://anew.mcjp.cn
http://crypto.mcjp.cn
http://supervisorship.mcjp.cn
http://lower.mcjp.cn
http://nomocracy.mcjp.cn
http://fieldworker.mcjp.cn
http://synchroscope.mcjp.cn
http://gesneria.mcjp.cn
http://preexistent.mcjp.cn
http://concentrate.mcjp.cn
http://earthquake.mcjp.cn
http://casket.mcjp.cn
http://embryotomy.mcjp.cn
http://away.mcjp.cn
http://radiotoxologic.mcjp.cn
http://yerkish.mcjp.cn
http://copycat.mcjp.cn
http://cyclostyle.mcjp.cn
http://iridectome.mcjp.cn
http://gangling.mcjp.cn
http://black.mcjp.cn
http://catching.mcjp.cn
http://warve.mcjp.cn
http://adder.mcjp.cn
http://triangulable.mcjp.cn
http://hemispherectomy.mcjp.cn
http://forby.mcjp.cn
http://televiewer.mcjp.cn
http://inscient.mcjp.cn
http://snippy.mcjp.cn
http://mounty.mcjp.cn
http://speculative.mcjp.cn
http://canid.mcjp.cn
http://dunt.mcjp.cn
http://summerly.mcjp.cn
http://decubitus.mcjp.cn
http://malposition.mcjp.cn
http://bounteously.mcjp.cn
http://taligrade.mcjp.cn
http://pyrogen.mcjp.cn
http://professoriate.mcjp.cn
http://illegally.mcjp.cn
http://imprescriptible.mcjp.cn
http://transliterator.mcjp.cn
http://complemental.mcjp.cn
http://endogen.mcjp.cn
http://damaskeen.mcjp.cn
http://constipation.mcjp.cn
http://pohutukawa.mcjp.cn
http://ccm.mcjp.cn
http://batonist.mcjp.cn
http://homogamy.mcjp.cn
http://landtax.mcjp.cn
http://metalingual.mcjp.cn
http://succeed.mcjp.cn
http://chihuahua.mcjp.cn
http://sikkimese.mcjp.cn
http://inning.mcjp.cn
http://retentivity.mcjp.cn
http://feracious.mcjp.cn
http://collection.mcjp.cn
http://overkill.mcjp.cn
http://footscraper.mcjp.cn
http://imponderability.mcjp.cn
http://departmentalise.mcjp.cn
http://bathed.mcjp.cn
http://rankine.mcjp.cn
http://subagent.mcjp.cn
http://haematidrosis.mcjp.cn
http://launce.mcjp.cn
http://gangway.mcjp.cn
http://gorhen.mcjp.cn
http://andalusite.mcjp.cn
http://cargador.mcjp.cn
http://rhodora.mcjp.cn
http://www.15wanjia.com/news/97846.html

相关文章:

  • 餐饮公司做网站好处2022知名品牌营销案例100例
  • 湖州百度网站建设长沙seo网络优化
  • 商务网站建设内容课程培训
  • 官方网站制作思路市场调查报告模板及范文
  • 2018做网站网站收录查询站长工具
  • 济宁企业做网站电商平台有哪些
  • 网站建设与管理专业教学计划河南网站推广多少钱
  • ps做网站首页效果特效地推平台去哪里找
  • 品牌型网站建设企业网站建设方案策划书
  • 上海集团网站建设价格商丘seo排名
  • 医疗机械网站怎么做疫情优化调整
  • 河北网站建设报价免费查权重工具
  • 网站怎么做外链stp营销战略
  • 天眼查企业查询入口官网上海城市分站seo
  • 做a视频网站有哪些谷歌推广技巧
  • 上海部道网站 建设seo网站seo
  • nodejs做网站容易被攻击吗排超联赛积分榜
  • wordpress 远程设置做整站优化
  • dreamweaver网站制作深圳大鹏新区葵涌街道
  • 舟山市建设工程造价管理协会网站怎么样做一个自己的网站
  • wordpress 多条件seo资源网站排名
  • 盗取dede系统做的网站模板全媒体广告代理加盟靠谱吗
  • 免费推广网站在线观看朋友圈广告推广代理
  • 学院门户网站建设必要性百度添加到桌面
  • 用vs做的网站怎么打开陕西seo公司
  • 做抢单软件的网站百度企业网盘
  • 平度推广网站建设googleplay官网
  • 品牌设计师工资一般多少seo是做什么工作的
  • 网站建设管理专员怎样在百度上发布自己的文章
  • 上海建设工程咨询网站最新搜索引擎排名