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

做曖視頻网站/企业网站源码

做曖視頻网站,企业网站源码,苹果手机做网站服务器,北京网站手机站建设公司吗我把学习python过程中所用到的实例进行了简单的总结,内容很简单可以自己复制到电脑上跑一下,希望能对初学python的同学有一些帮助,后续也会更新更多的内容 实例一文字处理 name input(what is your name? ) favorite_color input(what i…

我把学习python过程中所用到的实例进行了简单的总结,内容很简单可以自己复制到电脑上跑一下,希望能对初学python的同学有一些帮助,后续也会更新更多的内容

实例一文字处理

name = input('what is your name? ')
favorite_color = input('what is your favorite color?')
print('Hi ' + name)
print(name +' like '+ favorite_color)birth_year = input('birth year')
age = 2020 - int(birth_year)
print(age)

实例二文字处理+运算

ciurse = "'python'a good language"
print(ciurse[-1])
print(ciurse[0:3])
print(ciurse[2:])
print(ciurse[:-1])
first = 'jone'
last = 'smith'
message = first + '['+last+'] is a code'
msg = f'{first} [{last}] is a coder'
print(message)
print(msg)
print(len(ciurse))
print(ciurse.upper())
print(ciurse.lower())
print(ciurse.find('o'))
print(ciurse.replace('good','great'))
print('good' in ciurse)
print(10 + 3)
print(10 / 3)
print(10 % 3)
print(10 ** 3)
x = 10
x += 3
print(x)#数学就是解题
y = 2.9
print(round(y))
print(abs(-2.9))
print(math.floor(-2.9))#math说明
print(math.floor(2.9))

实例三判断语句

is_hot = False
is_cold = True
if is_hot:print("It is a hot day")
elif is_cold:print("It is a cold day")
else:print("It is a cold day")print("Enjoy your day")
price = 100000
has_good_credit = True
if has_good_credit:down_payment = price*0.1
else:down_payment = priceprint(down_payment)has_good_credit = True
has_high_income = False
if has_good_credit and has_high_income: #or    and notprint('loah')
else:print('NO')tem = 30
if tem > 30:print('It is a hot day')
elif tem == 30:print('It is not a hot day')
else:print('It is a cold day')name = 'J'
if len(name) < 3:print('short')
else:print('long')
http://www.lbrq.cn/news/817381.html

相关文章:

  • 大学生婚恋网站策划书/女排联赛最新排行榜
  • 商城网站建设信息/千万别手贱在百度上搜这些词
  • 上海正规做网站公司电话/seo外包公司优化
  • wordpress 搬瓦工迁移/seo是什么技术
  • 石岩做网站哪家好/整合营销案例
  • 外贸营销软件/搜索引擎优化原理
  • 网站的c4d动画是怎么做的/关键词在线试听
  • 拖拽建站 wordpress/微信公众号小程序怎么做
  • 香港网站空间租用哪个好/网站推广基本方法是
  • 销售网站建设怎么样/对网站外部的搜索引擎优化
  • 营销型网站建设需要懂什么/中国宣布取消新冠免费治疗
  • 黄山网站建设公司/平台推广是什么意思
  • 禹城做网站的公司/最新新闻热点事件2022
  • 如何做团购网站中的美食地处地图功能/百度安全中心
  • 做网站哪/快速排名上
  • 做电影网站的资源从哪里换/bing搜索引擎
  • 重庆产品推广类网站/整合营销的特点有哪些
  • 网站建设哪家效果好/怎样把广告放到百度
  • rp如何做网站/合肥网站优化推广方案
  • 长沙雨花区建设局网站/赣州是哪个省
  • 太原网站建设baidu/营销网络的建设
  • 湘潭做网站价格 q磐石网络/百度一下你就知道百度首页
  • 郑州企业网站建设公司/商丘seo
  • 网站软文设计/网站权重是什么意思
  • element ui设计网站/做搜索引擎推广多少钱
  • app开发制作教程/seo诊断工具
  • 做网站哪家好 要钱/百度seo搜索排名
  • 迅捷流程图在线制作网站/百度app交易平台
  • 莆田百度seo公司/北京seo优化方案
  • 推广公司的广告语/seo课堂
  • 【架构】Docker简单认知构建
  • PHP语法高级篇(六):面向对象编程
  • 可调谐激光器原理与设计 【DFB 与 DBR 激光器剖析】
  • 2025年02月11日 Go生态洞察:Go 1.24 发布亮点全面剖析
  • 二叉搜索树(Binary Search Tree)详解与java实现
  • 黑马点评01 - 项目介绍 短信登录