码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
python中时间相关问题,仅作为笔记
1.获取当前时间的两种方法: import datetime,timenow = time.strftime("%Y-%m-%d %H:%M:%S")print nownow = datetime.datetime.now()print now 2.获取上个月最后一天的日期(本月的第一天减去1天) ...
分类:编程语言   时间:2016-08-07 23:16:17    阅读次数:217
[Linux-shell] AWK
Go to the first, previous, next, last section, table of contents. Printing Output One of the most common actions is to print, or output, some or all o ...
分类:系统相关   时间:2016-08-07 20:13:01    阅读次数:265
shell of leetcode
1.Tenth Line How would you print just the 10th line of a file? For example, assume that file.txt has the following content:Line 1Line 2Line 3Line 4Lin ...
分类:系统相关   时间:2016-08-07 16:46:00    阅读次数:254
Java数据库操作大全
1.提取单条记录 [java] view plain copy print? //import java.sql.*; Connection con=null; Statement stmt=null; ResultSet %%6=null; try { Class.forName("sun.jdb ...
分类:数据库   时间:2016-08-07 15:16:03    阅读次数:249
python3
python3 学习笔记 // r 不转义 print(r'\\t\t') //'''多行 print('''afa afa afaff''') 10//3 =>3 内存中统一用unicode编码 当需要保存到硬盘或者需要传输的时候,就转换为UTF-8编码 Python 3版本中,字符串 str 类... ...
分类:编程语言   时间:2016-08-07 00:47:15    阅读次数:321
Python Base Two
//fourth day to study python 24. In python , how to create funcation. we can use def to define funcation. such as: def MyFirstFuncation(): print('this ...
分类:编程语言   时间:2016-08-07 00:46:11    阅读次数:202
python内置函数总结
取绝对值的内置函数:absprint(bas(-9))#-9的绝对值会被打印出来2.处理可迭代对象的函数(一):allname=("Tom","Jack","Lily")print(all(name))#因name这个变量定义的可迭代对象是一个正确的列表所以实print执行会返回True,只有可迭代对象全为真,返回结果才为True.3.处理可迭代..
分类:编程语言   时间:2016-08-06 22:03:57    阅读次数:262
python中的数组list和字典dic
list#!/usr/bin/envpython #encoding:utf-8 classmates=[‘Michael‘,‘Bob‘,‘Tracy‘] classmate=[‘01‘,‘02‘,‘03‘] print(classmate[0]) print(len(classmate))dic#!/usr/bin/envpython #encoding:utf-8 a={‘xaioming‘:80,‘lili‘:90,‘kk‘:101} print(a[‘lili‘]) ~
分类:编程语言   时间:2016-08-06 22:00:53    阅读次数:174
【幻化万千戏红尘】qianfengDay20-java基础学习:数据流、随机读取文件流RandomAccessFile
课程回顾: 流:转换流:字符和字节的转换对象流(Object):序列化,反序列化 打印流(Print):打印各种数据类型的数据 今日内容:数据流(Data):支持将基本数据类型写出,字节流,处理流1、DataOutputStream:数据输出字节流常用方法:writeXXX:写出基本数据类型的数据w ...
分类:数据库   时间:2016-08-06 20:31:45    阅读次数:174
1.2 Python基本语法
1.交互模式编程 cmd窗口 =>输入 Python => 输入 print "hello,python!"; ps:如果是新版本Python,需要输入print("hello,python!"); =>输出 hello,python! 2.脚本模式编程 调用解释器及脚本作为参数,开始执行脚本,并一 ...
分类:编程语言   时间:2016-08-06 19:03:06    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!