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

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

¤U­±¹Ï¤ù¬OÂà´««áªº®t²§

TOP

¦^´_ 141# koshi0413

§Ú¥ý»¡©ú¤U¸ü 3to2
¦bcmd ¤U  cd C:\Anaconda3\Scripts <<³o¬O§Ú¦w¸Ëªº¥Ø¿ý¡AÀ³¥H§A¦w¸Ëªº¥Ø¿ý¬°·Ç
pip instsll 3to2

C:\Anaconda3\Scripts>pip install 3to2
Collecting 3to2
  Using cached 3to2-1.1.1.zip
Building wheels for collected packages: 3to2
  Running setup.py bdist_wheel for 3to2 ... done
  Stored in directory: C:\Users\lpk187\AppData\Local\pip\Cache\wheels\09\f6\6b\5220ff649a6eb703d0a1d55123ca5c6ccf5213a6bb87ddb806
Successfully built 3to2
Installing collected packages: 3to2
Successfully installed 3to2-1.1.1

³o¼Ë´Nªí¥Ü¦w¸Ë§¹¦¨
±µµÛ¦bC:\Anaconda3\Scripts¥Ø¿ý¤U²£¥Í¤@­ÓÀɮסA ¨S¦³°ÆÀɦWªº3to2¡A
§ó§ï¥¦ªº°ÆÀɦW¬°3to2.py
¦A¨Ó´N¬OÂà´«¤F
°²³]¦³­Ó py¬O¥H3ª©®æ¦¡¼gªº©ñ¦bD:\ ¤U¡AÀɦW¬° tt.py
C:\Anaconda3\Scripts>python 3to2.py -w d:\tt.py
...
...
RefactoringTool: Files that were modified:
RefactoringTool: d:\tt.py
³o¼Ë´Nªí¥ÜÂà´«¦¨¥\¤F

¦A¨Ó¬O2to3¥H§Úªºª©¥»¨Ó»¡¬O°õ¦æÀÉ2to3.exe¡A¤]¦]¬°¬O°õ¦æÀÉ©Ò¥H¾Þ§@·|²©ö³\¦h
¥H­è¤~¨º­ÓÀɮ׬°¨Ò
C:\Anaconda3\Scripts>2to3 -w d:\tt.py
...
...
RefactoringTool: Files that were modified:
RefactoringTool: d:\tt.py
³o¼Ë´Nªí¥ÜÂà´«¦¨¥\¤F

TOP

¦^´_ 141# koshi0413


    ¨ä¹ê¤]¤£¥Î¤U¸ü3.xª©ªºAnaconda
¦b¦w¸Ë¥Ø¿ý¤U\Anaconda3\Scripts .....§ä¬Ý¬Ý¦³¨S¦³ 2to3 ©Î 3to2 ªºÀɮסA³o¬O2.xª©Âà3.xª© ¥H¤Î3.xÂà2.xª© ÀÉ®×
¥H§Úª©¥»¨Ó»¡¥u¦³ 2to3¡A¦Ó¥B¬O°õ¦æÀÉ exe ÀÉ¡A

TOP

¦^´_ 140# lpk187

¨ä¹ê   ¤p§Ì´N¬O¸Ë Anaconda µM«á¨Ï¥Î 2.7
«Ü¦h®M¥óÁÙ¬O¤p§Ì¦b¸É¤Wªº@@

©Ò¥H¡A¥Ø«e§Ú¸I¤Wªº±¡ªp¡A¥t¥~¥Î  Anaconda ¶}¤@­Ó3.4ª©¥»¡A¥Î¤j®aªº¥N½X  ¤]³\´N¸Ñ¨M¤F?

TOP

¦^´_ 139# koshi0413


    Anaconda ¤]¦³2.7ª©ªº https://www.continuum.io/downloads

TOP

¦^´_ 133# c_c_lai


    ±zÁ¿ªºÀ³¸Ó¬O³o­Ó§a¡H anaconda / Packages / python 3.5.2

TOP

zyzzyva¤j
¤£¦n·N«ä¡A¤p§Ì¤S¥¢±Ñ¤F  «¢«¢

lpk187¤j
¦¨¥\¤F¡A«D±`·PÁ±zÀ°¦£

¨ä¹ê¨C¦¸¦bª¦ºô­¶®É¡A¤p§Ì³£·|¥t¥~©Ô¤@¬q¥N½X¨Ó¸Ñ½X¡A«Ü¤Öª½±µ¦s¤U¨Óªº¡A©Ò¥HÁÙ¨S¸I¤W¦sÀÉÂà½Xªº°ÝÃD¡A³o¦¸­è¦n¾Ç²ß¤F¡A«D±`·PÁ¤G¦ìÀ°¦£~~®¼¼ö¤ßªº  «¢«¢
ps:¤@¯ë¤p§Ìı±o¤ñ¸û«æªº·Q¸Ñªº°ÝÃD¡A¤j³£¬OºÆ¨g§ä¦ôª¯¤j¯«   «Ü¤Ö³o¼Ë°Ý¨Óªº.....

TOP

¦^´_ 133# c_c_lai


    ¤p§Ì¥Î2.7ªº­ì¦]¬O¡Aopencvªº±Ð¾Ç¦n¹³2.7©~¦h¡A¬ÛÃö®M¥ó¤]¬O......

TOP

¦^´_ 132# koshi0413


    2.7 ­n¼g¦¨  u'¤¤¤å¦r' ¤Þ¸¹«e­n¥[ u
deta.columns = [u'ªÑ²¼¥N¸¹',u'ªÑ²¼¦WºÙ',u'¶R¶i',u'½æ¥X',
                            u'²{ª÷ÀvÁÙ',u'«e¤é¾lÃB',u'¤µ¤é¾lÃB',
                            u'­­ÃB',u'¶R¶i',u'½æ¥X',u'²{¨éÀvÁÙ',
                            u'«e¤é¾lÃB',u'¤µ¤é¾lÃB',u'­­ÃB',
                            u'¸ê¨é¤¬©è',u'µù°O']
deta.to_excel(u'test1.xlsx')

TOP

¦^´_ 132# koshi0413
«ü©w½s½X¸Õ¸Õ¬Ý¡C
deta.to_csv('test1.csv', encoding='utf-8')

TOP

        ÀR«ä¦Û¦b : ¤Ó¶§¥ú¤j¡B¤÷¥À®¦¤j¡B§g¤l¶q¤j¡A¤p¤H®ð¤j¡C
ªð¦^¦Cªí ¤W¤@¥DÃD