E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
raw_input()
python文件操作(创建与读取)
/usr/bin/env python'''make a test file'''import os ls = os.linesep#get file namefname =
raw_input
('Enter
大陌
·
2017-07-29 15:16
python
文件操作
Python
用Python Socket进行简单的电脑间通信
socket.gethostname()port=8080s.bind((host,port))s.listen(5)whileTrue:c,addr=s.accept()print'address:',addrstr=
raw_input
chent86
·
2017-07-28 19:47
python
【python】猜拳游戏
#Thefinger-guessinggame#coding=utf-8#导入一个包,可以理解为一个工具箱importrandom#等待玩家输入playerpls=
raw_input
("请输入:剪刀(0
Songs_Hu
·
2017-07-27 22:37
python
004输入与输出
说明:介绍输入和输出,并了解程序员节日为10.24输出print('helloworld')输入在Python中,获取键盘输入的数据的方法是采用
raw_input
函数(至于什么是函数,咱们以后的章节中讲解
wh_
·
2017-07-17 19:59
python实现登录查询(可以模糊查询)
#-*- coding: utf-8 -*-while 1:name=
raw_input
("Please input your name:")if name == "zhangsan":password
天道酬勤VIP
·
2017-07-15 19:36
python实现登录查询
python
习题
购物车:shoplist=[]#####已经购买的商品print'''*****welcometothisshoppingsystem*********'''salary=
raw_input
('pleaseinputyoursalary
如何何如
·
2017-07-14 23:13
习题
raw_input
( )和sys.stdin.readline( )的区别
之前一直认为用
raw_input
()和sys.stdin.readline()来获取输入的效果完全相同,但是有类似这样一段代码importsysline=sys.stdin.readline()foriinrange
LAINCLAK
·
2017-07-13 16:10
python
网络技术
Python2.x 变量的使用调用
Python2.x3种形式变量的使用调用#python 变量使用#
raw_input
2.x = input 3.x#******************第一种*******************name
靳闯博客
·
2017-07-13 11:56
python
linux
服务
使用python脚本利用SSH协议通过TFTP备份批量备份山石防火墙配置
importtimeLogTime=time.strftime('%Y-%m-%d_%H-%M-%S')tftp=
raw_input
('PleaseEnterTFTPSeverIP:')importHillstone_icmpaction
NetworkTiler
·
2017-07-12 17:19
TFTP
SSH
python
python
输入和输出
Python是有提供输入和输出的函数的print输出input输入(
raw_input
)print>>>print('helloword')helloword>>>print("helloword")helloword
cao979477675
·
2017-07-10 14:52
输出
输入
python
python实现数据结构之队列
/usr/bin/envpython#coding:utf-8queue=[]//定义一个列表数据类型对象,作为一个队列defpush()://入队函数value=
raw_input
('请输入入队数据:
Error_404notFound
·
2017-07-07 18:57
分类练习
习题
,"songzhao"]passwd=["123","1234"]print'''welcometosystem(C)reate(L)ogin'''x=len(user)whileTrue:data=
raw_input
如何何如
·
2017-07-06 16:22
习题
python作业
/usr/bin/envpython#coding:utf-8name=['root','linux']passwd=['redhat']defselect():create=
raw_input
("输入你要建立的用户名
Dream丶暖冬
·
2017-07-06 15:04
python
作业
[python][project][爬虫] 堆糖网图片下载
importrequestsimportrefrombs4importBeautifulSoupimporttimeimportos.pathimportsysimporturllibif__name__=="__main__":SearchContent_input=
raw_input
AhdaiMolly
·
2017-07-05 11:50
python
python练习题
#############################userername=
raw_input
("USERNAME:")password=
raw_input
("PASSWORD:")ifusername
铁骑传说
·
2017-06-29 18:44
python
用python写的登陆程序
linwei@file:linwei.py@contact:
[email protected]
@time:6/26/179:33AM@desc'''i=0foriinrange(0,3):username=
raw_input
2017lw
·
2017-06-27 21:29
编程
python
<父与子>8章练习8-1
a=int(
raw_input
())print"Here'syourtable:"foriinrange(1,11):printa,'*',i,'=',a*irunWhichmultiplicationtablewouldyoulike
然2016
·
2017-06-26 16:12
Python开发购物车程序
[('Iphone',5800),('MacPro',9800),('Bike',800),('Watch',10600),('Coffee',31),]shopping_list=[]salary=
raw_input
yht_1990
·
2017-06-26 16:22
Python
购物车
Python
Python实现字符串逆序输出功能示例
有时候我们可能想让字符串倒序输出,下面给出几种方法方法一:通过索引的方法>>>strA="abcdegfgijlk">>>strA[::-1]'kljigfgedcba'方法二:借组列表进行翻转#coding=utf-8strA=
raw_input
世界看我我看世界
·
2017-06-24 10:15
python九九乘法表和打印图形程序
range(1,i+1): print("%dx%d=%d") %(j,i,j*i), print '\n'结果:二、打印正方形实体正方形代码:#coding:utf-8rows=int(
raw_input
dyc2005
·
2017-06-22 18:03
python
乘法表
python
shell
Python格式化输出的四种方法
/usr/bin/envpython#coding:utf-8name=
raw_input
("name:")sex=
raw_input
("sex:")age=int(
raw_input
("age:"))
yht_1990
·
2017-06-22 11:11
Python
Python
Python 编写用户登录接口
1234562.Lock_User被锁用户文件3.Land.py主程序文件#coding=utf-8importsysi=0whilei<3:print("----Welcome------")account=
raw_input
千树一木
·
2017-06-12 20:09
python
python成绩统计(优化版)
/usr/bin/envPython#coding:utf-8#352-01.pya=1n1=
raw_input
("pleaseinputnumberofstudent:")n=int(n1)dd={}
tory_chen
·
2017-06-06 20:21
python
python统计考试成绩代码参考
/usr/bin/envpython#coding:utf-8#352-01.pya=1n1=
raw_input
("pleaseinputnumberofstudent:")n=int(n1)dd={}
tory_chen
·
2017-06-06 17:40
python
python初步学习笔记(一)
_vendor.distlib.compat类中导入
raw_input
这一个方法'''x="你好"y="世界"tuple=('runoob',786,2.23,'john',70.2)tinytuple
NG柠檬
·
2017-06-05 17:00
python初步学习笔记(一)
_vendor.distlib.compat类中导入
raw_input
这一个方法'''x="你好"y="世界"tuple=('runoob',786,2.23,'john',70.2)tinytuple
weixin_30418341
·
2017-06-05 17:00
python
py I/O基础
1.控制台IO1.1输入input():期望输入的是表达式.
raw_input
():输入的是原始内容.尽量多用这个.1.2输出print(self,*args,sep='',end='\n',file=
yichudu
·
2017-06-01 10:55
python
Python计算两个日期相差天数的方法示例
/usr/bin/pythonimporttimeimportsysdefdateinput():date=
raw_input
('pleaseinputthefirstdate:')returndatedefdatetrans
那片依然海
·
2017-05-23 11:19
Python实现的文本简单可逆加密算法示例
解密就是其逆运算#-*-coding:utf-8-*-importsysreload(sys)sys.setdefaultencoding('utf8')#加密defjiami():filename=
raw_input
九日王朝
·
2017-05-18 10:22
python之
raw_input
()(学习笔记六)
python之
raw_input
()(学习笔记六)我们经常使用
raw_input
()读取用户的输入,如下例子所示:>>>name=
raw_input
('pleaseinputyourname:'),截图如下
品鉴初心
·
2017-05-10 18:15
linux
raw
python
Python
集合(京东2017秋招真题)
sort但没有排序原来是因为读入之后数字是字符串格式,所以排序的时候15就排在了6的前面使用int调整一遍列表中元素的类型就可以了while 1: (x,y)=(int(x) for x in
raw_input
256785haha
·
2017-05-10 15:40
字符串
元素
京东
菜鸟学编程
python 从零开始日常笔记
如果要用中文必须要加这一句#encoding=utf8第一节输入输出输入a=input()或者a=
raw_input
();输出1,print(a)普通输出2,print("%d"%a)这种多数据输出3,
ACharvester
·
2017-05-09 13:49
python从零开始
输入输出 python
400创建一个名为:IO.py的文件,然后将上面代码拷进去,在终端上运行:pythonIO.pyimage.png观察结果:image.png输入(input)想要和控制台进行交互,就得有输入功能关键字:
raw_input
拙峰朽木
·
2017-05-08 15:09
如何在终端查看python内置函数功能
(三)如何查看python的文档pydocLinux:pydoc**window:python-mpydoc**注意:(1)在里linux下,可以在终端用pydocraw_input查看内置函数
raw_input
Babyzpj
·
2017-05-02 14:49
Python的语法总结
Python简明语法总结简单输入输出输出print10,'十'输入name=
raw_input
()python基础数据类型和变量常规类型:整形、浮点型、字符串(以'或者"括起来)、布尔值(True,False
python233
·
2017-04-27 18:00
python
爬虫
django
语法
python学习2——if语句、elif、if嵌套、while循环、while嵌套
一、if语句(1)#encoding=utf-8lenth=
raw_input
("请输入长度")ifint(lenth)0andlength0:print("购票成功")else:print("第一道安检没有通过
Python学习中
·
2017-04-19 15:10
pyhton入门(二)
Python1.转义字符\n:表示换行2.如何查看数据类型的函数type()3.交互式操作命令
raw_input
()input('')我的年龄是:(你输入的值)4.运算符1种:算术运算符+-*/%**/
余梦似海
·
2017-04-11 13:39
pyhton
Python基础小记
幂运算:2*3,-3*2等同-(3**2)input(‘please’),
raw_input
(),窗口输入。
chenqipc
·
2017-04-11 10:47
python
python 从零学
输入一个数,判断其的正负性#-*-coding:utf-8-*-num=
raw_input
('enteranumber:')ifint(num)>0:print('正数')elifint(num)<0:
ln-fighting
·
2017-04-11 00:00
python列表及函数
括号里的是字符类型)3.交互式操作命令3.6与2.7的区别:3.6是input,2.7是raw_inputinput它会根据用户输入变换相应的类型,而且如果要输入字符和字符串的时候必须要用引号包起来,而
raw_input
清风与你
·
2017-04-09 19:57
列表
python
运算符
python-第二课
正课1,转义字符2,如何查看数据类型的函数3,交互式操作命令
raw_input
()4,运算符5,列表转义字符\将有意义的字符变为普通字符\n换行符查看数据额类型的函数type()>>>print(type
动力在于作
·
2017-04-08 18:08
python
python
用户的删除,添加,修改密码,显示时间戳
":["westos",1020]}defmenu():whileTrue:print'''(D)eleteuser(S)howuser(E)xit(A)dduser(L)ogin'''choice=
raw_input
mb585f8c18e365d
·
2017-04-07 14:01
用户
python
登陆时间
python脚本练习
/usr/bin/envpython#encoding=utf-8filename1=
raw_input
("请输入第一个文件的文件名(绝对路径):")filename2=
raw_input
("请输入第二个文件的文件名
Y_Groot
·
2017-04-06 20:08
脚本习题
比较两个文本文档的不同,并显示第一出不同的行号列号
/usr/bin/envpython#coding=utf-8file1=
raw_input
("pleaseinputthefirestfilename:")//输入第一个文件名file2=
raw_input
mb585f8c18e365d
·
2017-04-05 13:24
python
second
please
python中的%s%是什么意思
编辑:这是一个非常简单的例子:name=
raw_input
("whoareyou?")print"hello%s"%(name,)该%s令牌允许我插入(和潜在的格式)的字符串。
my_bai
·
2017-03-31 18:11
Python
学习
用户登陆python脚本
/usr/bin/pythonimportgetpass#coding=utf-8user="root"passwd="westos"username=
raw_input
("pleaseinputtheusername
mb585f8c18e365d
·
2017-03-31 09:42
password
success
输入密码
输入姓名脚本
0count=input("Entertotalnumberofnames:")namelist=[]whilenum<=count:print"pleaseentername%d:"%numname=
raw_input
mb585f8c18e365d
·
2017-03-31 09:12
python
number
Enter
python学习笔记一 介绍、基本语法、流程控制
/usr/bin/env python#_*_coding:utf-8_*_#name =
raw_input
("What is your name?")
corasql
·
2017-03-25 21:26
python
Python
[python]简易计算器
flag=Truewhileflag:step1=
raw_input
('jia,jian,chen,chu:')ifstep1=='jia':var1=
raw_input
('var:')add.j
汤志华_1990
·
2017-03-22 09:36
python
用python生成指定位数的密码
、10位密码importrandomimportstringall_chs=string.letters+string.digitsdefgen_pass(num=8):pwd=''#num=int(
raw_input
insist_way
·
2017-03-21 10:22
密码
python
return
Python
上一页
19
20
21
22
23
24
25
26
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他