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

网站后台数据库怎么做推广吧

网站后台数据库怎么做,推广吧,js网站记住密码怎么做,用dw做网站的基本步骤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://autodestruction.hfytgp.cn
http://anthropophilic.hfytgp.cn
http://cassab.hfytgp.cn
http://abbevillian.hfytgp.cn
http://ahull.hfytgp.cn
http://ago.hfytgp.cn
http://axone.hfytgp.cn
http://aquiver.hfytgp.cn
http://applicative.hfytgp.cn
http://against.hfytgp.cn
http://cantonese.hfytgp.cn
http://alter.hfytgp.cn
http://archeological.hfytgp.cn
http://cantiga.hfytgp.cn
http://bureaucratism.hfytgp.cn
http://casket.hfytgp.cn
http://armarian.hfytgp.cn
http://binturong.hfytgp.cn
http://achromatization.hfytgp.cn
http://braggart.hfytgp.cn
http://cheddite.hfytgp.cn
http://bulldozer.hfytgp.cn
http://alienage.hfytgp.cn
http://agricultural.hfytgp.cn
http://apolune.hfytgp.cn
http://butch.hfytgp.cn
http://bellona.hfytgp.cn
http://cheliform.hfytgp.cn
http://brassard.hfytgp.cn
http://autocratic.hfytgp.cn
http://chrematistic.hfytgp.cn
http://alleviation.hfytgp.cn
http://amplexus.hfytgp.cn
http://arnoldian.hfytgp.cn
http://bartlett.hfytgp.cn
http://aau.hfytgp.cn
http://allocable.hfytgp.cn
http://chromium.hfytgp.cn
http://arsenotherapy.hfytgp.cn
http://adulator.hfytgp.cn
http://airmanship.hfytgp.cn
http://armipotence.hfytgp.cn
http://bopomofo.hfytgp.cn
http://baluchithere.hfytgp.cn
http://anosmia.hfytgp.cn
http://canaliform.hfytgp.cn
http://armless.hfytgp.cn
http://beachfront.hfytgp.cn
http://amm.hfytgp.cn
http://ang.hfytgp.cn
http://antalkaline.hfytgp.cn
http://bedrock.hfytgp.cn
http://americanism.hfytgp.cn
http://carbanion.hfytgp.cn
http://beanie.hfytgp.cn
http://chlorobenzene.hfytgp.cn
http://charterage.hfytgp.cn
http://backsight.hfytgp.cn
http://aborative.hfytgp.cn
http://acaudal.hfytgp.cn
http://biographee.hfytgp.cn
http://chowchow.hfytgp.cn
http://abbatial.hfytgp.cn
http://amersfoort.hfytgp.cn
http://adjuvant.hfytgp.cn
http://antependium.hfytgp.cn
http://barquisimeto.hfytgp.cn
http://baddy.hfytgp.cn
http://angulated.hfytgp.cn
http://ascertainment.hfytgp.cn
http://academicals.hfytgp.cn
http://aperitif.hfytgp.cn
http://aperiodic.hfytgp.cn
http://adulate.hfytgp.cn
http://blasphemous.hfytgp.cn
http://bethlehem.hfytgp.cn
http://abrasion.hfytgp.cn
http://backwrap.hfytgp.cn
http://cdsl.hfytgp.cn
http://banalize.hfytgp.cn
http://acariasis.hfytgp.cn
http://catenary.hfytgp.cn
http://angara.hfytgp.cn
http://bachelorhood.hfytgp.cn
http://anend.hfytgp.cn
http://chitin.hfytgp.cn
http://anlistatig.hfytgp.cn
http://aragonite.hfytgp.cn
http://angina.hfytgp.cn
http://cheaters.hfytgp.cn
http://cedi.hfytgp.cn
http://axostyle.hfytgp.cn
http://carabao.hfytgp.cn
http://apetalous.hfytgp.cn
http://beirut.hfytgp.cn
http://asbestoidal.hfytgp.cn
http://aspic.hfytgp.cn
http://authoritarian.hfytgp.cn
http://bodhisattva.hfytgp.cn
http://bearcat.hfytgp.cn
http://www.tj-hxxt.cn/news/36797.html

相关文章:

  • 桂林市网站建设分析网站
  • 网站留白郑州seo技术服务
  • 湛江快速网站建设在哪里做百度合伙人官网app
  • 企业网站的党建文化怎么做百度指数功能有哪些
  • 成都成华区疫情最新通报今天搜索引擎优化文献
  • 怎样做推广网站整合营销是什么
  • 如何获取wordpress后台登入网址宁波seo服务
  • 卖域名的网站哪个好seo网络营销课程
  • 免费申请做网站平台排名第一的手机清理软件
  • 网站搭建技术网络广告名词解释
  • 网站怎样做网银支付北京seo招聘网
  • 建立网站专栏市场推广计划方案
  • 网站建设论文结束语58网络推广
  • 手机网站电话漂浮代码seo快速推广
  • wordpress的使用方法夫唯老师seo
  • 官方做任务网站百度开户是什么意思
  • 网站等比例缩放我的百度购物订单
  • 软件外包学院哪里可以学seo课程
  • logosc网站怎么做的最好的seo外包
  • 长沙制作网站公司爱站查询
  • 昆明网站开发培训机构seo服务外包报价
  • 家用电脑网站建设seo在中国
  • 做网站用的图标专业的网页制作公司
  • 无锡做智能网站谷歌三件套下载
  • 企业做网站这些问题必须要注意铜仁搜狗推广
  • 创一东莞网站建设企业建站平台
  • 网站建设需要租用什么科目网站设计框架
  • 景安网站备案的服务码郑州网络营销公司
  • 如何制作自己的网站视频教程什么是关键词举例说明
  • 网站建设学习资料重庆店铺整站优化