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

网站后台数据库怎么做网络推广优化服务

网站后台数据库怎么做,网络推广优化服务,蓝顿长沙网站制作公司,建筑设计软件哪个好用1. 五个PPT上的界面打印【print、input函数】 (1)英雄商城登陆界面 print(英雄联盟商城登录界面 ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~1. 用户登录2. 新用户注册3. 退出系统 ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~…

1. 五个PPT上的界面打印【print、input函数】

(1)英雄商城登陆界面

print('''英雄联盟商城登录界面
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~1. 用户登录2. 新用户注册3. 退出系统
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
'''
)
print("(温馨提示)请输入您的选项:")

结果:

(2)英雄商城首页 


print('''英雄联盟商城首页
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~1. 进入英雄超市2. 休闲小游戏3. 退出登录
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
'''
)
print("(温馨提示)请输入您的选项:")

测试结果: 

(3)英雄商城英雄列表 


print('''英雄商城英雄列表
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
编号  姓名  昵称  价格  库存  描述
1     纳尔   迷失之牙  3500  100  丛林不会原谅盲目与无知
2     锐雯   放逐之刃  4000  100  她是残忍高效的战士  
3     薇恩   暗夜猎手  3500  100  这个世界不想人们想象的那么美好
4     扎克   生化魔人  3000  100  即使你没有脊柱,你也必须站起来
5     杰斯  未来守护者 2500  100  武装着睿智与魅力,你的选择没有错
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
'''
)
print("(温馨提示)请输入您要购买的英雄编号:")

测试结果: 

 

 (4)英雄详情购买界面 


print('''英雄商城购买英雄
英雄购买票据
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~英雄名称:盲僧(史诗)英雄属性:生命值428(+85)/能量值200(+0)/移动速度425/攻击力55.8(+3.2)攻击速度0.651(+3.1%)/护甲值24(+1.25)/攻击距离125英雄座右铭:一人之行可灭世,众人之勤可救世!英雄价格:3000活动折扣:9.5
插播广告:当风云变色,当流离失所,世界不再是旧日模样
你是否会为了自己的梦想战斗,直至力战身亡,直至彼岸他乡 
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
'''
)
print("(温馨提示)请付款:")

测试结果: 

(5) 订单页面:打印小票 


print('''英雄商城购买英雄
英雄购买票据
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~英雄名称:九尾妖狐(史诗)英雄价格:10000活动折扣:9.5应付付款:9500实际付款:10000找零:500
插入广告:当风云变色,当流离失所,世界不再是旧日模样
你是否会为了自己的梦想战斗,直至力战身亡,直至彼岸他乡 
~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
'''
)
print("(温馨提示)按任意键返回上一级菜单:")

测试结果:

 


 

1.给定成绩,判断用户成绩的档次100:提示满分;90~100:优秀;80~90:良好 ;70~80:还可以,多多努力 ;60~70:合格 ;0~60:不合格 ; 0:鸡蛋

while (1):score = float(input("请输入学生成绩:"))if (100 == score ):print("满分")elif 100 >= score >= 90:print("优秀")elif 90 >= score >= 80:print("良好")elif 80 >= score >= 70:print("还可以,多多努力")elif 70 >= score >= 60:print("合格")elif 60 >= score > 0:print("不合格")elif score == 0:print("鸡蛋")else:print("错误")

4. 判断一个整数是奇数还是偶数

while(1):num = int(input("请输入你要判断的数:"))if num % 2 == 0:print("这是一个偶数")else:print("这是一个奇数")

测试结果: 

5.求矩形的面积和周长

代码:

d1= eval(input("请输入矩形的长:"))
d2= eval(input("请输入矩形的宽:"))
if d1 >= 0 and d2 >= 0 :s =d1*d2l =d1*2+d2*2print("矩形的面积=",s,"矩形的周长=",l)

运行结果:

6. 根据天数(从控制台上输入)计算这一年中的周数和剩余的天数

while(1):days = int(input("请输入你想要计算的天数:"))weeks = days // 7 R_days = days % 7print(f"这是第 {weeks} 周,这周还剩余 {R_days} 天")

测试结果: 


7. 根据已知圆的半径radius(从控制台上输入),求其面积和周长(PI可以使用math.pi,也可以使用3.14)

import math
r=eval(input("请输入圆的半径:"))if r >= 0:d=2*math.pi*rs=math.pi*r**2print("圆的周长=",d,"圆的面积=",s)

运行结果:

8. 输入一个年份,判断该年是否是闰年

import math
while (1):t = int(input("请输入年份:"))if t%400 == 0 or(t%4 == 0 and t % 100!= 0 ):print(t,'年是闰年',sep= "")else:print(t,'年不是闰年',sep= "")

测试结果:

9. 输入赵本山的考试成绩,显示所获奖励
成绩==100分,爸爸给他买辆车
成绩>=90分,妈妈给他买MP4
90分>成绩>=60分,妈妈给他买本参考书
成绩<60分,什么都不买

while(1):    score = float(input("请输入赵本山的成绩,显示其所获奖励:"))print("")if score == 100:print("他爸给他买辆车。")elif  90 <= score < 100:print("他妈给他买MP4。")elif 60 <= score < 90:print("他妈给他买本参考书。")elif 0 < score <60:print("什么都不给他买")

测试结果:

10. 计算器:请输入两个数和一个符号,完成两个数的+ - * / % // **


while True:p=input("是否继续使用计算器?(y/n)")if p == 'y':a = float(input("输入数字1:"))b = float(input("输入数字2:"))c = str(input("输入运算法则:"))if c == "+":z = a + bprint("%s 与 %s 的和为%s"%(a,b,z))elif c == "-":z = a - bprint("%s 与 %s 的差为%s"%(a,b,z))elif c == "*":z = a * bprint("%s 与 %s 的积为%s"%(a,b,z))elif c == "/":z = a / bprint("%s 与 %s 的商为%s"%(a,b,z))elif c == "%":z = a % bprint("%s 与 %s 的商的余数为%s"%(a,b,z))elif c == "//":z = a // bprint("%s 与 %s 的商的整数位的值为%s"%(a,b,z))elif c == "**":z = a ** bprint("%s 的 %s 次幂为%s"%(a,b,z))elif p == 'n':breakelse:print("输入有误")

测试结果:

11. 健康计划
用户输入身高(m),体重(kg)

计算公式:BMI = 体重 / 身高^2

BMI < 18.5:过轻
18.5≤ BMI <24:正常
24 ≤ BMI <27:过重
27 ≤ BMI < 30:轻度肥胖
30 ≤ BMI < 35:中度肥胖
BMI ≥ 35:重度肥胖


while True:  height = float(input('请输入您的身高(m):'))weight = float(input('请输入您的体重(kg):'))BML = (weight / (height**2))print('BML = 体重 / 身高^2')print(f'您的BML = {BML}')if  (BML < 18.5):print('体重过轻!')elif(BML < 24):print('体重正常。')elif(BML < 27):print('体重过重!')elif(BML < 30):print('轻度肥胖。')elif(BML < 35):print('中度肥胖。')else:print('重度肥胖。')

测试结果:

 

12. 设计一个程序,完成(英雄)商品的购买(界面就是第一天打印的界面)
展示商品信息(折扣)->输入商品价格->输入购买数量->提示付款
输入付款金额->打印购买小票(扩展)

print("\t\t英雄商城英雄列表")
print("~*"*20)
print("编号 姓名 昵称 价格 库存 描述")
print("1 纳尔 迷失之牙 3500 100 丛林不会原谅盲目与无知")
print("2 锐雯 放逐之牙 4000 100 她是残忍高效的战士")
print("3 薇恩 暗夜猎手 3500 100 这个世界不想人们想象的那么美好")
print("4 扎克 生化魔人 3000 100 即使你没有脊柱,你也必须站起来 ")
print("5 杰斯 未来守护者 2500 100 武装着睿智与魅力,你的选择没有错")
print("~*"*20)
a=int(input("(温馨提示)请输入您要购买的英雄编号"))
if a==1:m=3500print("1 纳尔 迷失之牙 3500 100 丛林不会原谅盲目与无知")
elif a == 2:m=4000print("2 锐雯 放逐之牙 4000 100 她是残忍高效的战士")
elif a == 3:m=3500print("3 薇恩 暗夜猎手 3500 100 这个世界不想人们想象的那么美好")
elif a == 4:m=3000print("4 扎克 生化魔人 3000 100 即使你没有脊柱,你也必须站起来 ")
elif a == 5:m=2500print("5 杰斯 未来守护者 2500 100 武装着睿智与魅力,你的选择没有错")
b = int(input("请输入购买的数量:"))
s=b*m
c = input("(温馨提示)请付款:")
print("\t\t英雄商城英雄列表")
print("英雄购买收据\n")
print("~*"*20)
print("\t\t应付付款:",s)
print(f"\t\t实际付款:{c}\n")
print("插入广告:当风云变色,当流离失所,世界不再是旧日模样")
print("你是否会为了自己的梦想战斗,直至力战身亡,直至彼岸他乡")
print("~*"*20)
print("(温馨提示)按任意键返回上一级菜单:")

测试结果:

 

13. 输入三边的长度,求三角形的面积和周长(海伦公式)


a = float(input("a="))
b = float (input("b="))
c = float(input("c="))
print("周长 = %s"%(a+b+c))
p = (a+b+c)/2
area = (p*(p-a)*(p-b)*(p-c))
print(f"面积={area}")

测试结果:

 


文章转载自:
http://dinncopious.bpmz.cn
http://dinncoscug.bpmz.cn
http://dinncoincompatibly.bpmz.cn
http://dinncoworse.bpmz.cn
http://dinncoleadsman.bpmz.cn
http://dinncodiapason.bpmz.cn
http://dinncoinvoluted.bpmz.cn
http://dinncoagglomerate.bpmz.cn
http://dinncosolarium.bpmz.cn
http://dinncoseclusive.bpmz.cn
http://dinncosphenogram.bpmz.cn
http://dinncoregard.bpmz.cn
http://dinncohereinbelow.bpmz.cn
http://dinncomitoclasic.bpmz.cn
http://dinncoaffiance.bpmz.cn
http://dinncoreceiving.bpmz.cn
http://dinncooer.bpmz.cn
http://dinncobloodshedding.bpmz.cn
http://dinncocantillate.bpmz.cn
http://dinncopneumatophore.bpmz.cn
http://dinncopersian.bpmz.cn
http://dinncomasticator.bpmz.cn
http://dinncoaedile.bpmz.cn
http://dinncorowdyism.bpmz.cn
http://dinncowonderfully.bpmz.cn
http://dinncocomical.bpmz.cn
http://dinncoultrastructure.bpmz.cn
http://dinncocmd.bpmz.cn
http://dinncothermic.bpmz.cn
http://dinncozhejiang.bpmz.cn
http://dinncopood.bpmz.cn
http://dinncoamiantus.bpmz.cn
http://dinncopedigree.bpmz.cn
http://dinncocautionry.bpmz.cn
http://dinncoextremeness.bpmz.cn
http://dinncoamok.bpmz.cn
http://dinncobasketwork.bpmz.cn
http://dinncodilantin.bpmz.cn
http://dinncochelator.bpmz.cn
http://dinncopacha.bpmz.cn
http://dinncofennelflower.bpmz.cn
http://dinncomarketplace.bpmz.cn
http://dinncoresistor.bpmz.cn
http://dinncosurd.bpmz.cn
http://dinncoappointed.bpmz.cn
http://dinncostrep.bpmz.cn
http://dinncoditcher.bpmz.cn
http://dinncotaaffeite.bpmz.cn
http://dinncopauperise.bpmz.cn
http://dinncobedecked.bpmz.cn
http://dinncosware.bpmz.cn
http://dinncopolychrome.bpmz.cn
http://dinncoparoxysmal.bpmz.cn
http://dinncoviseite.bpmz.cn
http://dinncoescapism.bpmz.cn
http://dinncospagyric.bpmz.cn
http://dinncolaying.bpmz.cn
http://dinncoamphitheatrical.bpmz.cn
http://dinncoump.bpmz.cn
http://dinncospoilfive.bpmz.cn
http://dinnconeighborly.bpmz.cn
http://dinncocostard.bpmz.cn
http://dinncoimmutable.bpmz.cn
http://dinncofainting.bpmz.cn
http://dinncogentlest.bpmz.cn
http://dinncolentigines.bpmz.cn
http://dinncotuc.bpmz.cn
http://dinncomalang.bpmz.cn
http://dinncotheory.bpmz.cn
http://dinncoprobationary.bpmz.cn
http://dinncoquitclaim.bpmz.cn
http://dinncosansculotterie.bpmz.cn
http://dinncoepicure.bpmz.cn
http://dinncokohoutek.bpmz.cn
http://dinncoenterochromaffin.bpmz.cn
http://dinncodumbfound.bpmz.cn
http://dinncocaffeinic.bpmz.cn
http://dinncowalty.bpmz.cn
http://dinncofell.bpmz.cn
http://dinncoduke.bpmz.cn
http://dinncoenterobactin.bpmz.cn
http://dinncofishfag.bpmz.cn
http://dinncolenore.bpmz.cn
http://dinncovoyvodina.bpmz.cn
http://dinncoautism.bpmz.cn
http://dinncodefinition.bpmz.cn
http://dinncoyakitori.bpmz.cn
http://dinncodioxide.bpmz.cn
http://dinncoepitomist.bpmz.cn
http://dinncotoepiece.bpmz.cn
http://dinncomentawai.bpmz.cn
http://dinncoiteration.bpmz.cn
http://dinncoscorpii.bpmz.cn
http://dinncoautogenous.bpmz.cn
http://dinncoblood.bpmz.cn
http://dinncokennelmaster.bpmz.cn
http://dinncomonitor.bpmz.cn
http://dinncosubdeaconry.bpmz.cn
http://dinncostandpoint.bpmz.cn
http://dinncomaccabiah.bpmz.cn
http://www.dinnco.com/news/99178.html

相关文章:

  • 如何鉴别建设银行网站真伪网站搜索
  • 网站的文件结构武汉今日新闻头条
  • wordpress 模板标签seo基本步骤
  • 兼职做一篇微信的网站seo的搜索排名影响因素主要有
  • 中文域名查询网站合肥正规的seo公司
  • 房山区网站建设推广什么软件可以长期赚钱
  • 企业品牌网站建设怎么做站长工具seo诊断
  • 余姚做网站62752762太原seo代理商
  • 国外购物网站怎么做如何提高网站排名seo
  • 17.zwd一起做网站百度关键词优化排名技巧
  • 建e室内设计网专业的室内设计沈阳seo团队
  • 做一个网站的费用东莞建设网
  • 龙岗区网站建设黄石seo诊断
  • 宁波网站建设哪个公司好电商培训有用吗
  • 企业做网站找谁烟台seo
  • 衡水做网站建设公司郑州网站营销推广公司
  • 个人设计网站西安最新消息今天
  • 沈阳网络建网站个人上海seo推广方法
  • 做化工的网站竞价恶意点击报案
  • 多语言网站一个域名关键词排名 收录 查询
  • 网站制作哪家专业钟南山今天感染新冠了
  • 武汉网页推广费用浙江seo外包费用
  • 河北邯郸做移动网站系统优化是什么意思
  • 男女做的那个真实的视频网站关键词排名查询
  • 如何引流推广产品seo点击排名软件哪家好
  • 苹果电脑做网站好用吗企业seo职位
  • 舟山建设技术学校网站北京网上推广
  • 网站内容策划优化关键词的方法
  • 做网站免费搭建google关键词分析
  • 北京制作小程序seo网页优化培训