Server IP : 127.0.0.2 / Your IP : 3.23.61.205 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/python-xlwt/examples/ |
Upload File : |
#!/usr/bin/env python # -*- coding: windows-1251 -*- # Copyright (C) 2005 Kiseliov Roman from xlwt import * font0 = Formatting.Font() font0.name = 'Arial' font1 = Formatting.Font() font1.name = 'Arial Cyr' font2 = Formatting.Font() font2.name = 'Times New Roman' font3 = Formatting.Font() font3.name = 'Courier New Cyr' num_format0 = '0.00000' num_format1 = '0.000000' num_format2 = '0.0000000' num_format3 = '0.00000000' st0 = XFStyle() st1 = XFStyle() st2 = XFStyle() st3 = XFStyle() st4 = XFStyle() st0.font = font0 st0.num_format = num_format0 st1.font = font1 st1.num_format = num_format1 st2.font = font2 st2.num_format = num_format2 st3.font = font3 st3.num_format = num_format3 wb = Workbook() wb.add_style(st0) wb.add_style(st1) wb.add_style(st2) wb.add_style(st3) ws0 = wb.add_sheet('0') ws0.write(0, 0, 'Olya'*0x4000, st0) #for i in range(0, 0x10): # ws0.write(i, 2, ('%d'%i)*0x4000, st1) wb.save('sst.xls')