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脚本
utf-8 -*-import sysuser = "wangru"counter = 0while True: if counter < 3: name =
raw_input
wr1985624
·
2015-06-30 21:21
python
continue
import
python
python初始---程序一(login登陆)
/bin/bash/envpythonwhileTrue: user_name=
raw_input
('whatisyourname?').
cjt0115
·
2015-06-29 20:57
python
login
登陆
python初始---程序一(login登陆)
/bin/bash/envpythonwhileTrue: user_name=
raw_input
('whatisyourname?').
cjt0115
·
2015-06-29 20:57
python
login
登陆
python 点滴记录12:异常处理
/usr/bin/python while 1: c =
raw_input
("input 'c' contin
linuxyuliu
·
2015-06-29 18:05
异常处理
python
python 点滴记录12:异常处理
/usr/bin/python while 1: c =
raw_input
("input 'c' contin
linuxyuliu
·
2015-06-29 18:05
异常处理
python
python 点滴记录12:异常处理
/usr/bin/pythonwhile 1: c =
raw_input
("input 'c' continue,ot
linuxyuliu
·
2015-06-29 18:05
python
异常处理
python实现的简单RPG游戏流程实例
具体如下:#RPGrpg=Truewhp=100mahp=100hhp=100MHP=10defdgrnd():wa=
raw_input
("WhatdoesWarriordo?")
不吃皮蛋
·
2015-06-28 15:35
550C Divisibility by Eight(还是枚举)
然后对于这每一个数,看能否在所给的大数中找到对应位的数字(注意顺序)即可#-*-coding:utf-8-*- s=
raw_input
() sl=len(s) a=xrange(0,1000,8) l=
u014679804
·
2015-06-26 19:00
codeforces 550B Preparing Olympiad(枚举)
#-*-coding:utf-8-*- n,l,r,x=map(int,
raw_input
().split()) c=map(int,
raw_input
().split()) ans=0 foriinxrange
u014679804
·
2015-06-26 17:00
序列判断
stopword = '' str = '' for line in iter(
raw_input
,stopword): str += line + '\n' L = str.strip().split
chrischan123
·
2015-06-24 19:49
python水题
相同数字
stopword = '' str = '' for line in iter(
raw_input
,stopword): str += line + '\n' L = str.strip().split
chrischan123
·
2015-06-24 15:48
python水题
alex教学视频--购物表
让用户输入工资输出购物菜单及产品价格计算用户是否可支付输出用户剩余的钱,问用户是否继续购物,如果选择继续,继续进行,直到钱不够为止#coding:UTF-8 import sys while True: try: salary = int(
raw_input
l1141041
·
2015-06-22 13:28
python
alex
购物表
alex教学视频--购物表
让用户输入工资输出购物菜单及产品价格计算用户是否可支付输出用户剩余的钱,问用户是否继续购物,如果选择继续,继续进行,直到钱不够为止#coding:UTF-8 import sys while True: try: salary = int(
raw_input
l1141041
·
2015-06-22 13:28
python
alex
购物表
PYTHON基础
2.基本语法2.1.if/elif/elsex=int(
raw_input
("Pleaseenteraninteger:"))#获取行输入 ifx>0: print'正数'elifx==0: print
刀刀_高扬
·
2015-06-18 17:48
基础
python
语法
PYTHON基础
2.基本语法2.1.if/elif/elsex=int(
raw_input
("Pleaseenteraninteger:"))#获取行输入 ifx>0: print'正数'elifx==0: print
刀刀_高扬
·
2015-06-18 17:48
基础
python
语法
ACM ICPC Team
acm-icpc-teamget到了新用法itertools的一点点知识另外复习了二进制的一些利用(好吧,其实已经忘光了,如果不用二进制来解题,系统总是会判断超时import itertools people, topic =
raw_input
七郡
·
2015-06-16 20:00
python-day1
/usr/bin/env python name =
raw_input
("Please input your name:") if name == 'Madon': #判断名字等于Madon 等于看以下内容
青春掌柜
·
2015-06-16 16:44
world
department
Please
afternoon
python-day1
/usr/bin/env python name =
raw_input
("Please input your name:") if name == 'Madon': #判断名字等于Madon 等于看以下内容
青春掌柜
·
2015-06-16 16:44
world
department
Please
afternoon
流程控制
/usr/bin/env python import tab for i in range(3): name =
raw_input
('Plelease input your name
liangey
·
2015-06-12 22:36
linux
python
shell
流程控制
/usr/bin/env python import tab for i in range(3): name =
raw_input
('Plelease input your name
liangey
·
2015-06-12 22:36
linux
python
shell
流程控制
/usr/bin/env pythonimport tabfor i in range(3): name =
raw_input
('Plelease input your name: ')
liangey
·
2015-06-12 22:36
linux
shell
python
python
简单的登陆脚本
/usr/bin/pythonwhileTrue: input =
raw_input
("pelease inputyour name:") if input == 'leo
liangey
·
2015-06-11 21:46
python
linux.shell
python
简单的登陆脚本
/usr/bin/python whileTrue: input =
raw_input
("pelease inputyour name:") if input == '
liangey
·
2015-06-11 21:46
python
linux.shell
Python实现控制台输入密码的方法
具体如下:1.raw_input():pwd=
raw_input
('password:')printpwd#password:aaa#aaaNote:最简单的方法,但是不安全2.getpass.getpass
lovebread
·
2015-05-29 16:42
TinyOS学习 - 节点烧写工具代码
, numNodes=int(
raw_input
()) foriinrange(0,numNodes): print"\nPutn
chenfs1992
·
2015-05-27 22:00
TinyOS
Python实现队列的方法
/usr/bin/envpythonqueue=[]defenQ():queue.append(
raw_input
('Enternewstring:').strip())#调用list的列表的pop()
buaa_shang
·
2015-05-26 11:15
Python实现栈的方法
/envpython#定义一个列表来模拟栈stack=[]#进栈,调用列表的append()函数加到列表的末尾,strip()没有参数是去掉首尾的空格defpushit():stack.append(
raw_input
buaa_shang
·
2015-05-26 11:11
Python易忽视知识点小结
这里记录Python中容易被忽视的小问题一、input(...)和
raw_input
(...)
惟愿莲心不染尘
·
2015-05-25 15:17
【练习题】:统计循环素数
输入样例:100输出样例:13importmathn=int(
raw_input
-兔纸-
·
2015-05-25 13:38
python
python基础-学习笔记
一.输入和输出 1.1打印print 1.2输入input
raw_input
 
Chinaperson
·
2015-05-20 17:00
python
python 变量输入
a=int(
raw_input
("pleaseinputnumber:"))//输入字符串兵转换成int case:#/bin/pythonaa=int(
raw_input
("pleaseinput:"
SolomonT
·
2015-05-19 22:13
python
字符串
number
Please
python 变量输入
a=int(
raw_input
("pleaseinputnumber:"))//输入字符串兵转换成int case:#/bin/pythonaa=int(
raw_input
("pleaseinput:"
SolomonT
·
2015-05-19 22:11
字符串
python
number
Please
Python使用cx_Oracle模块将oracle中数据导出到csv文件的方法
具体实现方法如下:#ExportOracledatabasetablestoCSVfiles#FB36-201007117importsysimportcsvimportcx_Oracleconnection=
raw_input
秋风秋雨
·
2015-05-16 10:50
初学Python之利用map编写姓名格式化输出函数
代码:#定义一个list L = [] #设置名字的个数 n = int(
raw_input
("Please enter the number of the name:")) #利用循环将名字追加到
max_bon
·
2015-05-13 10:33
python
map
输出函数
raw_input
和input的区别
下面对它们逐一介绍:1、
raw_input
函数语法:
raw_input
([prompt])如果prompt不存在,也就是
raw_input
(),它会标准输出(没有后面的换行符)。
DQ_DM
·
2015-05-12 09:34
Python学习总结
raw_input
和input的区别
下面对它们逐一介绍:1、
raw_input
函数语法:
raw_input
([prompt])如果prompt不存在,也就是
raw_input
(),它会标准输出(没有后面的换行符)。
DQ_DM
·
2015-05-12 09:34
Python学习总结
Python一行读入多个整数+map()函数解析
python中的输入
raw_input
只能读入一个数,但是有时候需要读入多个数,我们该怎么办呢,读两个数可以使用两个
raw_input
,但是我们如果需要读取十个数怎么办,不能使用十个raw_nput吧。
djd已经存在
·
2015-05-11 22:03
python标准库
Python一行读入多个整数+map()函数解析
python中的输入
raw_input
只能读入一个数,但是有时候需要读入多个数,我们该怎么办呢,读两个数可以使用两个
raw_input
,但是我们如果需要读取十个数怎么办,不能使用十个raw_nput吧。
djd1234567
·
2015-05-11 22:00
python
function
map
函数分析
python输入
python使用xlrd实现检索excel中某列含有指定字符串记录的方法
这里利用xlrd,将excel中某列数据中,含有指定字符串的记录取出,并生成用这个字符串命名的txt文件importosimportxlrd,sys#inputtheexcelfileFilename=
raw_input
小五义
·
2015-05-09 16:41
python爬虫抓取全国pm2.5的空气质量(2015.12.21版)
这个编码还和编辑器有关系,最开始的时候实在sublimeText里编辑的代码,运行起来卡卡的,特别顺畅,但突然发现它不支持
raw_input
和input,所以令临时换到了python官方提供的idle中
djd1234567
·
2015-05-09 14:00
多线程
正则表达式
python
爬虫
京东
python 处理电子表格(前编)
importxlrdinput_ip=
raw_input
("请输入一个ip:")input_count_values=int(
raw_input
("请输入-1or+1:"))data=xlrd.open_workbook
浪漫的偷笑
·
2015-05-06 17:12
python
import
电子
python 处理电子表格
import xlrdimport xlwt##输入input_ip =
raw_input
("请输入一个ip:")input_count_values = int(
raw_input
("请输入-1 or
浪漫的偷笑
·
2015-05-06 17:12
电子
新建
python
python
python 处理电子表格
import xlrd import xlwt ##输入 input_ip =
raw_input
("请输入一个ip:") input_count_values = int(
raw_input
("请输入
浪漫的偷笑
·
2015-05-06 17:12
python
style
import
新建
电子
python中的循环和dict、set
第二种循环是while循环,只要条件满足,就不断循环,条件不满足时退出循环原来从
raw_input
()读取的内容永远以字符串的形式返回,把字符串和整数比较就不会得到期待的结果,必须先用int()把字符串转换为我们想要的整型
刘家万
·
2015-05-05 18:00
今日哈工大刷推荐python脚本
import httplib import random import time import urllib2 import re address =
raw_input
("Please
·
2015-05-04 19:00
python
python input 与
raw_input
函数的区别
转自:http://blog.csdn.net/sruru/article/details/7790436 以前没有深入考虑过
raw_input
与input函数的区别,所以一直比较困惑,今天测试之后,
·
2015-05-04 14:00
python
[Python]shelve模块实例一则
import sys, shelve def store_person(db): pid =
raw_input
('Enter unique I
夹着尾巴做狼
·
2015-05-03 18:00
python
script
PYTHON之显示居中
把字体显示在屏幕的中间sentence =
raw_input
("Sentence:") screen_width = 80text_width = len(sentence)box_width = text_width
buranle
·
2015-04-28 00:34
python
居中
PYTHON之显示居中
把字体显示在屏幕的中间sentence =
raw_input
("Sentence:")screen_width = 80text_width = len(sentence)box_width = text_width
buranle
·
2015-04-28 00:34
python
居中
python
PYTHON之显示居中
把字体显示在屏幕的中间sentence =
raw_input
("Sentence:") screen_width = 80text_width = len(sentence)box_width = text_width
buranle
·
2015-04-28 00:34
python
居中
上一页
30
31
32
33
34
35
36
37
下一页
按字母分类:
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
其他