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

网站平台建设实训心得体会关于网站建设广告词

网站平台建设实训心得体会,关于网站建设广告词,网站开发技术选择,网站建设velpai1、编写可供用户查询的员工信息表#xff1a;1).用户认证(输入用户名#xff0c;密码)2).查询关键字#xff1a;姓名3).显示ID#xff0c;name#xff0c;section#xff0c;phone4).员工信息表内容如下#xff1a;cat search_name.txt001wenlong IT12345678002xiaojun …1、编写可供用户查询的员工信息表1).用户认证(输入用户名密码)2).查询关键字姓名3).显示IDnamesectionphone4).员工信息表内容如下cat search_name.txt001wenlong IT12345678002xiaojun IT12345678003ankang IT12345678004xiang IT12345678脚本如下#!/usr/bin/python#-*- coding:utf-8 -*-        #输入这一条就可以在Python脚本里面使用汉语注释此脚本可以直接复制使用while True:            #进入死循环input  raw_input(Please input your username:)    #交互式输入用户信息输入input信息if input  wenlong:        #如果input等于wenlong则进入此循环(如果用户输入wenlong)password  raw_input(Please input your pass:)    #交互式信息输入输入password信息p  123                  #设置变量P赋值为123while password ! p:         #如果输入的password 不等于p(123) 则进此入循环password  raw_input(Please input your pass again:)    #交互式信息输入输入password信息if password  p:        #如果password等于p(123)则进入此循环print welcome to select system!              #输出提示信息while True:           #进入循环match  0     #设置变量match等于0input  raw_input(Please input the name whom you want to search :)   #交互式信息输入输入input信息while not input.strip():   #判断input值是否为空如果input输出为空则进入循环input  raw_input(Please input the name whom you want to search :)        #交互式信息输入输入input信息name_file  file(search_name.txt)     #设置变量name_filefile(search_name.txt)是调用名为search_name.txt的文档while True:               #进入循环line  name_file.readline()           #以行的形式读取search_name.txt文档信息if len(line)  0:      #当len(name_file.readline() )为0时表示读完了文件len(name_file.readline() )为每一行的字符长度空行的内容为\n也是有两个字符。len为0时进入循环break       #执行到这里跳出循环if input in line:    #如果输入的input信息可以匹配到文件的某一行进入循环print Match item: %s  %line     #输出匹配到的行信息match  1    #给变量match赋值为1if match  0 :              #如果match等于0则进入   print No match item found!         #输出提示信息else: print Sorry ,user  %s not found  %input      #如果输入的用户不是wenlong则输出信息没有这个用户上面加了备注的脚本也可以直接使用这里重新贴一次没有注释的供学习#!/usr/bin/pythonwhile True:input  raw_input(Please input your username:)if input  wenlong:password  raw_input(Please input your pass:)p  123while password ! p:password  raw_input(Please input your pass again:)if password  p:print welcome to select system!while True:match  0input  raw_input(Please input the name whom you want to search :)while not input.strip():print No match item found!input  raw_input(Please input the name whom you want to search :)name_file  file(search_name.txt)while True:line  name_file.readline()if len(line)  0:breakif input in line:print Match item:   , linematch  1if match  0 :print No match item found!else: print Sorry ,user  %s not found  %input测试图片
http://www.pierceye.com/news/54913/

相关文章:

  • 网站设计网站源码商务网站建设与维护(专21春)
  • 乐从网站制作discuz开放平台
  • 网站栏目方案电子商务网站有那些功能
  • 哪里有网络课程平台网站_就是帮老师建设一个教学的网站iis 网站压缩
  • 上海千樱网站建设教你学做窗帘的网站
  • php做的网站有河南seo推广公司
  • 建设部评职称查询网站企业邮箱的格式长什么样子
  • 网站备案流程实名认证各种类型网站建设口碑好
  • 邯郸网站开发公司电话p2p 网站开发
  • 网站备案是需要去哪里做百度做一个网站怎么做呢
  • 母婴网站源码dede电子商务网站建设(论文
  • 随州有哪些网站建设的公司阳信县住房和城乡建设局网站
  • 在阿里云域名可以做网站吗韶关做网站
  • 用php做视频网站的步骤免费咨询男性问题
  • 北京建网站实力公司深圳网站建设服务哪个便宜啊
  • 2个女人做暧暧网站软文代发
  • 漳浦建设局网站如何分析一个网站
  • 一键网站制作wordpress轮播的插件
  • ss网站代码wordpress 暂无评论
  • 技术型网站做哪一种好小说抄写员兼职app
  • 淘宝客网站建设视频频频教程新版wordpress编辑器
  • 用pageadmin做的网站用什么虚拟主机号delphi 网站开发
  • 永州网站建设收费标准工商企业信息查询公示系统
  • 网站建设费用报价单公司公司网站建设公司
  • 汽车网站怎么做容桂品牌网站建设
  • 沈阳网站建设建设公司哪家好岳阳网红打卡地
  • 宠物网站的设计与实现让wordpress支持ssl
  • 云南公司网站开发网站维护服务合同
  • 网站怎么访问自己做的网页西安装修公司哪家口碑最好
  • 个人网站怎么建设规划和建设php网站开发环境论文