Comments (4)
好的 謝謝你
from pyptt.
應該是BUG 我會排入全新架構的測試範例
from pyptt.
昨天整進全新主線,可以再試試看嘛?
from pyptt.
我仔細看了一下,你的程式碼好像不太對。
你可以參考 https://github.com/Truth0906/PTTLibrary/blob/master/Test.py
ErrCode, UserInfo = PTTBot.getUser(ID)
if ErrCode == PTT.ErrorCode.NoUser:
PTTBot.Log('沒有此使用者')
continue
elif ErrCode != PTT.ErrorCode.Success:
PTTBot.Log('getUserInfo fail error code: ' + str(ErrCode))
continue
PTTBot.Log('使用者ID: ' + UserInfo.getID())
PTTBot.Log('使用者經濟狀況: ' + str(UserInfo.getMoney()))
PTTBot.Log('登入次數: ' + str(UserInfo.getLoginTime()))
PTTBot.Log('有效文章數: ' + str(UserInfo.getLegalPost()))
PTTBot.Log('退文文章數: ' + str(UserInfo.getIllegalPost()))
PTTBot.Log('目前動態: ' + UserInfo.getState() + '!')
PTTBot.Log('信箱狀態: ' + UserInfo.getMail() + '!')
PTTBot.Log('最後登入時間: ' + UserInfo.getLastLogin() + '!')
PTTBot.Log('上次故鄉: ' + UserInfo.getLastIP() + '!')
PTTBot.Log('五子棋戰績: ' + str(UserInfo.getFiveChess()[0]) + ' 勝 ' + str(UserInfo.getFiveChess()[1]) + ' 敗 ' + str(UserInfo.getFiveChess()[2]) + ' 和')
PTTBot.Log('象棋戰績:' + str(UserInfo.getChess()[0]) + ' 勝 ' + str(UserInfo.getChess()[1]) + ' 敗 ' + str(UserInfo.getChess()[2]) + ' 和')
from pyptt.
Related Issues (20)
- 新手問題(AttributeError: module 'PyPtt' has no attribute 'API') HOT 1
- 板主名單有特殊字元出錯 HOT 2
- 請問有辦法取得一定範圍的文章嗎? HOT 4
- 使用get_newest_index取book看板的newest_index不是最新的 HOT 3
- get_newest_index 用 search_list 搜特定關鍵字異常 HOT 7
- Dhggy
- 特定簽名檔會造成使用寄信功能後無法正常使用其他功能 HOT 2
- SingleLog 是否為必須的依賴? HOT 3
- 在抓我的最愛的時候,碰到分隔線就不繼續往下抓看板了 HOT 1
- 使用 PyPtt 的各位,有沒有意願加入 AI Labs
- 功能新增:匿名發文功能 HOT 8
- ConnectError: 連線失敗 HOT 3
- Failed to connect to PTT while PTT2 is Good HOT 1
- 編輯紅包袋 HOT 3
- code execution backdoor
- get_mail function will raise exception when mail without proper title HOT 3
- get_newest_index回傳2,但只有一篇文章(aid相同) HOT 1
- 新增功能;樂透功能 HOT 3
- comment 功能異常 HOT 1
- comment 功能異常 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyptt.