自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 python办公自动化-1

import os print(os.getcwd()) #获取当前python程序运行路径 print(os.path.join('a','b')) #路径连接,os.path.join(第一个,第二个,第三个,...) print(os.listdir()) #当前文件夹下所有文件和文件夹,输出的是列表 print(os.listdir('e:/')) #绝对路径,‘e:\\’也行 print(os.listdir('./lib')) #相对路径 files = os.listdir(.

2020-10-27 20:18:24 56

原创 python基础-2

n = 3 if n % 2 >0: print(f'数字{n}是奇数') else: print(f'数字{n}是偶数') a, b, c = 4, 2, 3 if a > b and a > c: print(a) elif b > a and b > c: print(b) else: print(c) score = 53 if score < 0 or score > 100: print('您输入的数.

2020-10-27 20:12:28 108 1

原创 python基础-1

a,b,c = 1,2,3 name = 'abcdefg' print(a,b,c) print(name[0], name[-1], len(name), name.upper(), name.replace('a','x')) #从右往左从-1开始 print( a>0 and b>0) print( not a>0 ) print(name[1:3]) #截取字符串 print(name[::-1]) #倒序 name = 'I\'m a maker' #转义 a.

2020-10-27 20:10:33 53

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除