ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[­ì³Ð] python¤W¥«Âd¤T¤jªk¤H¶R½æ¶W¤é³ø¸ê®Æ¤U¸ü

¦^´_ 80# zyzzyva
·s¼W¬£¤u.png
2016-9-11 19:18

TOP

¦^´_ 81# c_c_lai
Screenshot_2.png
2016-9-11 19:26

§Úªº¬O¯à¥¿±`Åã¥Ü¡A¥i¯à¬O¨t²ÎÁÙ¬O¨ºÃ䪺°ÝÃD¡A¦³ÂI¨Æ±o¥Xªù¡A©ú¤Ñ¦A§ä§O¥x¹q¸£´ú¬Ý¬Ý¡C

TOP

¦^´_ 82# zyzzyva
¤U¸ü«á¥²¶·¥ý¦æÀ˵ø¡yµ§°O¥»¡z¤§¤U¸ü¤º®e¡A¦p¬°¶Ã½X«h§R°£¦A­«·s
°õ¦æ¤@¦¸¡A¦p¦¹¤Ï½Æ¡A¦p¬°¥¿Åé«h±N¥¦¥ý¦æÀx¦s¤@¦¸¡AµM«á¤~¥h°µ
¶}±Ò Excel °Ê§@¡C ¤Ï¤§¡yµ§°O¥»¡z¤§¤U¸ü¤º®e¦p¤£¥ý¦æÀx¦s¤@¦¸¡A
¶}±Ò¤§  Excel (CSV) Àɤº®e¨ÌµM¬°¶Ã½X¡C(............xDx)
·s¼W¬£¤u.png
2016-9-12 04:19

TOP

¦^´_ 55# lpk187
§A¹ï #61 ªº®×¨Ò¦³§_¬Ýªk¡H ¦pªG§ï¦¨¨Ï¥Î pandas ®M¥ó¤£ª¾¥i¦æ§_¡H
§Úµo²{ Python ½d³òÁÙÆZ¼sªº¡A§A­Ìªºµ{¦¡À³¥ÎÁÙ¯u«P¦¨§Ú¹ï¥¦ªº¿³½ì¡A
ÁÂÁ§A¡I

TOP

¦^´_ 32# c_c_lai
¥i°Ñ¦Ò ¨Ï¥Îpython(x,y)

TOP

¦^´_ 84# c_c_lai

§Ú©M§A¤@¼Ë¤]¥u¬Oªì¾ÇPython ¡A¹ï©óPython¤]©|¦b¬ã¨s¤§¤¤¡A
¬Q¤Ñ¬Ý¨ì§A©Mzyzzyva¤j¤j¬ã¨s³o½g­Ë¤]¬O¤Þµo§Ú«Ü¤jªº¿³½ì¡I
¨ä¹ê§Ú¹ï pandas »{ÃѤ]¤£²`¡A¤]¶È¬O­è¦n¬Ý¨ì pandas ¥i¥H»s§@ªí®æ °Ñ¦Òºô§}
¨ä¥Lªº¥i¤£¤ÓÀ´ªº¡A HTML ¥N½X¡C¹ï§Ú¨Ó»¡¡A¥i¬O³B¦b§¹¥þ¤£À´°Ú¡I­ü¡I
¹ïBeautiful Soup 4¡A§c¡I¤]¬O¬Ý±oªáªáªº ¡A°Ñ¦Òºô§}
¤@°_¥[ªo§a¡I

TOP

¦^´_ 85# clianghot546
Python(x,y) is a free scientific and engineering development software for numerical computations, data analysis and data visualization based on Python programming language. ¥¦¹ïªÑ¥«¼Æ¾Úªº¤ÀªR¹Ïªí«D±`¦n¥Î¡F
¦Ó¥Ø«eªº®×¨Ò¬O«D¼Æ­È¤§¸ê®Æ¿ý¼Æ¾Ú¡AÁÂÁ©p¡I
¤]Åwªï§A¤@¦P°Q½×¡I

TOP

¦^´_ 86# lpk187
§A¤]¬O§Úªº Python ±Ò»X¦Ñ®vËç¡I
¤@°_¥[ªo§a¡I

TOP

¦^´_ 83# c_c_lai
«á­±¨º¬q§Ú¯à²z¸Ñ¡A¬OexcelŪ¨úcsv¹w³]½s½Xªº°ÝÃD¡A2007¥H«áªºª©¥»À³¸Ó¼g¤JBOM(byte of mark)¥i¥H¸Ñ¨M¡C
¤§«e¦bencoding=utf-8«á­±¥[¤Wsig´N¬O¥[¤WBOM¡A¤£ª¾¹D¬°¤°»ò¦b2010¤£¦æ¡C±z¦³ªÅªº¸Ü¦A¸Õ¸Õ¬Ý§â¥L§ï¦^¥hutf-8¡A
µM«á¦b¤U­±¥[¤@¦æ¡uf.write('\ufeff')¡v¤â°Ê¼g¤J¸Õ¸Õ¬Ý¡C
«e­±¨º¬qªº°ÝÃD§Ú¹ê¦b·Q¤£¥X­ì¦]¡A§ì¤U¨Óªº¸ê®Æ¦bµ§°O¥»¸Ì¦³®É¥¿±`¦³®É¶Ã½X¡H
¦³¨S¦³¿ìªk½Æ»s¿ù»~¡H½T»{¬O¤£¬O¯S©w±¡ªp©Î¬O­¶­±·|¥X²{¶Ã½Xªº°ÝÃD¡A³o¼Ë¤ñ¸û¦³­Ó¤è¦V¡C
pandas´N§Ú©Òª¾¥D­n¥Î¦b«á¬qªº¸ê®Æ¤ÀªR¡A·Ç³Æ¸ê®Æ³q±`À³¸ÓÁÙ¬O»Ý­n¨ä¥L¤u¨ã»²§U¡C

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-9-12 10:17 ½s¿è

¦^´_ 89# zyzzyva
¥[¤W         f.write('\ufeff') «á¡A
¤@¤Á§Y«ì´_¥­ÀR (¥¿±`ªº¤£±o¤F)¡A³o©ÛÁÙ¯uºÞ¥Î©O¡I
ÁÂÁÂÅo¡I(°õ¦æ«e§Y¥ý±N CSV Àɮײ¾°£¡A¦Ó«á§Y±q¨â¤è­±¶i¦æÆ[¹î¡A§¡¤£¤©¥HÀx¦s±ø¥ó¤U)
¦A¨Ó¤@­Ó¹ê¥Î½d¨Ò¡A¨º§Úªº Python ¾Ç²ßÀ³±N¶}©l°_¨B¤F¡I
  1. with open('gospel2.csv', 'a', new='', encoding='utf-8') as f:
  2.         fieldnames = ['«ØÀÉ ID', '¤¤¤å¦WºÙ', '­^¤å¦WºÙ', '¤ÀÃþ', '©v¬£', '¥À·|', 'ºô§}', '°ê§O°Ï°ì', '³]¥ß®É¶¡', '­t³d¤H', '¹q¸Ü', '¶Ç¯u', '¹q¶l', '·|§}', '³q°T³B']
  3.         f.write('\ufeff')
  4.         w = csv.DictWriter(f, fieldnames)
  5.         w.writeheader()
  6.         w.writerows(myList)
  7.         print('gospel2.csv ÀÉ®×Àx¦s§¹²¦¡I')
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤ß¤¤±`¦sµ½¸Ñ¡B¥]®e¡B·P«ä¡Bª¾¨¬¡B±¤ºÖ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD