上一页 1 ··· 10 11 12 13 14
摘要: String模块 ascii_letters ascii_uppercase ascii_lowercase digits octdigits hexdigits printable whitespace punctuation ASCII 美国标准信息交换代码。 定制了128个常用字符,主要是英文 阅读全文
posted @ 2017-11-19 19:23 Bob__Zhang 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 数学模块 引入模块:import math 注意: 使用某个模块下的函数,必须先引入这个模块,否则无法正常使用。 ceil() floor() round() pow() sqrt() fabs() abs() modf() copysign() fsum() sum() 模块提供的常见值 pi e 阅读全文
posted @ 2017-11-19 19:16 Bob__Zhang 阅读(8595) 评论(0) 推荐(0) 编辑
摘要: 时间日期相关的模块 calendar 日历模块 time 时间模块 datetime 日期时间模块 timeit 时间检测模块 日历模块 calendar() month() monthcalendar() isleap() leapdays() monthrange() weekday() tim 阅读全文
posted @ 2017-11-19 19:12 Bob__Zhang 阅读(812) 评论(0) 推荐(0) 编辑
摘要: shutil模块 引入: import shutil copy() copy2() copyfileobj() copyfile() copytree() copymode() copystat() rmtree() move() which() disk_usage() 归档和解包操作 归档:将多 阅读全文
posted @ 2017-11-12 15:15 Bob__Zhang 阅读(13752) 评论(0) 推荐(1) 编辑
摘要: OS模块 OS 操作系统的简称 os模块就是对操作系统进行操作,使用该模块必须先导入模块: os模块中的函数 getcwd() chdir() listdir() mkdir() makedirs() rmdir() removedirs() 注意: 如:删除 D:/a/b/c 如果abc文件夹中除 阅读全文
posted @ 2017-11-12 15:10 Bob__Zhang 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 方向一 i = 1 while i <= 9: j = 1 while j <= i print('%d*%d = %2d'%( j,i ,i*j),end='') j += 1 print() i += 1 思路:先写出列,从一到九,再写出列,每次行=列的时候换行,行数增加一,所以里面的while 阅读全文
posted @ 2017-11-12 14:57 Bob__Zhang 阅读(1731) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14