摘要: # 把原來的 git 移除掉sudo rm .git -r# 初始化git initgit remote add origin https://github.com/username/repo-name.gitgit remote -v# 再重新加入全部 git add --allgit commi... 阅读全文
posted @ 2015-12-12 14:25 vickychan222 阅读(637) 评论(0) 推荐(0)
摘要: 為了讓其他人可以免安裝又可以執行python程式所以我把python portable版本 winpython 放在samba的空間共享但是使用者如果要開 winpython cammand prompt .exe 打指令執行程式的話又太麻煩所以寫了batch檔來直接執行我的python程式因為是共... 阅读全文
posted @ 2015-11-10 20:59 vickychan222 阅读(240) 评论(0) 推荐(0)
摘要: 使用 pandas.io 寫入 Sqliteimport sqlite3 as litefrom pandas.io import sqlimport pandas as pd依照 if_exists 分為三種模式寫入sqlite分別有預設 failed, replace, append#連結sql... 阅读全文
posted @ 2015-11-08 19:47 vickychan222 阅读(6872) 评论(0) 推荐(0)
摘要: 一開始使用的時候 看官方文件 以為使用 double_click()即可但後來出現錯誤AttributeError: 'WebElement' object has no attribute 'double_click'後來找了一下解決方式如下需要再多importActionChainsfrom s... 阅读全文
posted @ 2015-10-23 17:22 vickychan222 阅读(994) 评论(0) 推荐(0)
摘要: 到今天為止 xlwings 還沒有插入註解的功能去原始開發者的 Github Pull Requests他說之前有人有建議要加入這個功能 但他還沒更新~如果需要使用 Python 來插入註解的話 可以用我改好 forked 出來的 xlwings使用方式如下from xlwings import W... 阅读全文
posted @ 2015-10-21 17:34 vickychan222 阅读(1004) 评论(0) 推荐(0)
摘要: 用Python 來處理excel 檔 用過了 openpyxl 還有pyexcel目前覺得除了讀寫如果還要使用另外的功能 (像是讀取格子裡的公式)可以用 xlwings 他的首頁標題 "Make Excel fly with Python!" 聽起來就比較厲害以下為我的Python插入註解程式碼 完... 阅读全文
posted @ 2015-10-21 15:30 vickychan222 阅读(1547) 评论(0) 推荐(0)
摘要: 想要把msg信件檔案的附件抓出來做處理,找到了這個Python 模組msg-extractor使用十分容易,但是這個模組是要在terminal裡執行,無法直接打在IDLE的編輯器上所以稍微做了修改,使用 subprocess 模組來打指令就可以了以下為程式碼 完整程式碼在我的Github#放置msg... 阅读全文
posted @ 2015-10-20 10:42 vickychan222 阅读(903) 评论(0) 推荐(0)
摘要: 曾在模擬器跟Digital Ocean上安裝成功,我在 Digital Ocean上的是CentOS 7 x64,模擬器的則是Centos 6。雖然Centos 本身已經裝好 Python 但是是2.6版本主要步驟如下1. 安裝 Python 2.7.92. 安裝 pip 在 Python 2.7.... 阅读全文
posted @ 2015-10-20 10:18 vickychan222 阅读(382) 评论(0) 推荐(0)