码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
leetcode No89. Gray Code
Question: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the...
分类:其他好文   时间:2016-08-08 15:49:05    阅读次数:132
2.twisted入门
twisted入门 1. callWhenRunning callLater的使用 __author__ = 'zhoukunpeng' from twisted.internet import reactor import time def hello(): print "hello from t... ...
分类:其他好文   时间:2016-08-08 15:44:57    阅读次数:354
3.twisted client.getPage的使用
1.client.getPage 返回一个defer。 是异步的。#coding:utf8from twisted.internet import reactorfrom twisted.web import clientIP="202.102.224.68"def print_fun(x):pri... ...
分类:其他好文   时间:2016-08-08 15:44:46    阅读次数:188
python的string用法
s.strip().lstrip().rstrip(',') S.lower() #小写 S.upper() #大写 S.swapcase() #大小写互换 S.capitalize() #首字母大写 #分割 s = 'ab,cde,fgh,ijk'print(s.split(',')) #连接 d ...
分类:编程语言   时间:2016-08-08 14:23:22    阅读次数:139
css控制页面打印(分页、屏蔽不需要打印的对象)
样式: <style media="print"> .Noprint { DISPLAY: none;} .PageNext { PAGE-BREAK-AFTER: always } </style> 注: ①、不需要打印的对象要用上“Noprint”样式。 ②、需要换页处理的对象要用上“PageN ...
分类:Web程序   时间:2016-08-08 14:21:57    阅读次数:117
Python——处理文本换行符
源文件每行后面都有回车,所以用下面输出时,中间会多了一行 有两种方法处理: 1.print后面带 end='',表示不换行 2.用strip()函数去掉每一行的换行符 ...
分类:编程语言   时间:2016-08-08 12:55:55    阅读次数:543
How to control PrincipalObjectAccess table growth in Microsoft Dynamics CRM 2011
https://support.microsoft.com/en-us/kb/2664150 How to control PrincipalObjectAccess table growth in Microsoft Dynamics CRM 2011 Email Print Email  ...
分类:数据库   时间:2016-08-08 11:03:43    阅读次数:285
python简单基础代码
1.从键盘输入两个数,并计算A的B次幂:number1=raw_input('input number1:')number2=raw_input('input number2:')print 'number1 ** number2 is:%d' %(int(number1) ** int(numbe ...
分类:编程语言   时间:2016-08-08 09:52:22    阅读次数:222
python之路———第一章
初识python #以下的代码都是在PyCharm 4.5的编辑工具下执行的,并且python的版本是3.4 python的第一程序 print("Hello Word") #Hello Word 一、变量名 一)作用:一是用来存储,二是用来调用 二)定义规则: 1)变量名只能是字母、数字、下划线的 ...
分类:编程语言   时间:2016-08-08 06:33:01    阅读次数:302
python基础学习2_交互input
input用于与用户交互,就像shell脚本read一样。示例1:#!/usr/bin/envpython#_*_coding:utf-8_*_name=raw_input(‘请输入您的名字:‘)age=raw_input(‘年龄:‘)job=raw_input(‘工作:‘)salary=raw_input(‘工资:‘)print‘‘‘----------------------------Personalinformationof%s:Na..
分类:编程语言   时间:2016-08-08 00:59:52    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!