Redinho 发表于 2018-8-23 17:36:44

朕想知道

zhya2525896 发表于 2018-8-23 21:43:23

学习学习看看

Gsdxiaoheikkk 发表于 2018-8-24 17:38:40

0

jzzoxo 发表于 2018-8-26 11:29:58

真想知道

最爱丽丽 发表于 2018-8-26 12:59:35

1

PY_bi 发表于 2018-8-29 08:12:29

from openpyxl import Workbook #导入工作簿模块
from openpyxl.styles import Font #导入单元格字体样式模块

wb = Workbook()#新建一个工作簿

ws = wb.active#激活一个工作表

b2 = ws['B2']#定义一个单元格
b2.value = 'Python'#给单元格赋值
bold_red_font = Font(bold=True, color='FF0000')#定义字体样式
b2.font = bold_red_font#把字体样式赋给单元格字体

b3 = ws['B3']
b3.value = 'love'
italic_strike_16bold = Font(size=16, italic=True, strike=True, color='FF0000')
b3.font = italic_strike_16bold

wb.save(r'C:\Users\BY\Desktop\text1.xlsx')#保存新建的单元格

zaaazaa 发表于 2018-8-29 22:40:00

看看

Akihisa 发表于 2018-8-30 20:51:25

{:10_335:}Excel 按B列排序吗

勉族 发表于 2018-8-31 14:19:28

请问提示这个怎么解决 ?
C:\Users\Administrator>pip install openyxl
Collecting openyxl
Could not find a version that satisfies the requirement openyxl (from versions
: )
No matching distribution found for openyxl

我爱三九 发表于 2018-8-31 14:49:29

朕想知道

SongXie 发表于 2018-9-4 06:58:14

让我看看啊啊啊啊啊啊啊啊啊啊啊啊

zhulinjingxiang 发表于 2018-9-8 22:53:30

朕想知道

fanshutailang 发表于 2018-9-10 11:39:05

朕想知道

应用统计小学生 发表于 2018-9-10 17:36:54

想知道

hadescai 发表于 2018-9-11 13:34:34

看答案

风振幽篁 发表于 2018-9-11 22:15:16

朕想知道

风振幽篁 发表于 2018-9-11 22:22:13

朕想知道

wby@c 发表于 2018-9-12 09:00:24

朕想知道

gandme 发表于 2018-9-21 15:01:04

朕想知道

phthon小飞侠 发表于 2018-9-21 16:54:27

朕想知道
页: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15
查看完整版本: 使用Python读写Excel文件(1)