作者查詢 / handsomeLin

總覽項目: 發文 | 留言 | 暱稱
作者 handsomeLin 在 PTT [ Python ] 看板的留言(推文), 共220則
限定看板:Python
[問題] 超級新手請教python list找到最長字串的
[ Python ]15 留言, 推噓總分: +2
作者: timmyyeh - 發表於 2018/03/17 20:07(7年前)
3FhandsomeLin: 沒記錯的話 對非數字取max好像key就是len03/18 16:10
15FhandsomeLin: 真的是記錯了 還是得加個key哈哈03/19 02:58
[問題] 請問迴圈迭代的值可否比較大小
[ Python ]82 留言, 推噓總分: +6
作者: thethirdfoot - 發表於 2018/03/15 14:50(7年前)
28FhandsomeLin: J大的變數起頭都歸零基本上寫的不好吧...03/15 17:53
29FhandsomeLin: max跟min寫在外面分別等於無限小跟無限大03/15 17:54
30FhandsomeLin: 進迴圈再做判斷03/15 17:54
31FhandsomeLin: 說sort的又完全偏掉了 基本上原po就是想實踐min max03/15 17:57
32FhandsomeLin: 兩個原本時間複雜度 用sort基本等於nlogn 完全是自03/15 17:57
33FhandsomeLin: 找麻煩 冒泡排序最差更是n^2了03/15 17:57
34FhandsomeLin: *min max線性時間複雜度03/15 17:57
[問題] VS code 找不到library
[ Python ]15 留言, 推噓總分: +4
作者: owem0410 - 發表於 2018/01/22 22:30(8年前)
3FhandsomeLin: 確認你終端機默認的python是不是conda和版本確認01/23 02:42
4FhandsomeLin: 或是你前面要先import numpy?01/23 02:43
5FhandsomeLin: 第二個是我猜測 我感覺應該不用01/23 02:44
[問題] udemy或看書
[ Python ]7 留言, 推噓總分: +7
作者: bchoice - 發表於 2018/01/10 09:55(8年前)
4FhandsomeLin: udemy是天天都在特價01/10 12:40
[問題] arry swap
[ Python ]16 留言, 推噓總分: +3
作者: suhang - 發表於 2018/01/06 13:54(8年前)
1FhandsomeLin: 把他拆成三步看就很明顯了吧01/06 14:37
2FhandsomeLin: Python的swap我認為只是幫大家省略步驟而已01/06 14:41
16FhandsomeLin: 因為你temp一開始就擺錯東西了啊..第一步修改a[i]呢01/08 01:20
[問題] 關於list sorting (不使用內建sort)
[ Python ]11 留言, 推噓總分: +4
作者: starlichin - 發表於 2017/11/28 23:10(8年前)
3FhandsomeLin: 嗨,function刮號裡的是你的參數,如果你要算average11/29 04:33
4FhandsomeLin: 的話你要pass你return出來的東西才有辦法哦11/29 04:33
5FhandsomeLin: 簡單來說你最上面兩行可以不用那兩個變數也行11/29 04:34
6FhandsomeLin: sum max都是內建函數不要拿來當變數名稱11/29 04:49
7FhandsomeLin: sort的function邏輯上也不太對,建議網路看一下演算11/29 04:53
8FhandsomeLin: 法sorting的部分11/29 04:53
[問題] 習慣R studio 求類似ide
[ Python ]12 留言, 推噓總分: +6
作者: s3714443 - 發表於 2017/10/27 12:48(8年前)
7FhandsomeLin: VS除了沒有可以看變數之外 都一樣吧10/27 22:55
[問題] jQuery的.ajax
[ Python ]32 留言, 推噓總分: +11
作者: neil987 - 發表於 2017/10/27 10:45(8年前)
21FhandsomeLin: 唷他在送表單的時候用另外一個{}包住了10/27 22:44
22FhandsomeLin: 他server端處理可能是req.body.data.base.data這樣10/27 22:45
23FhandsomeLin: 的深度10/27 22:45
24FhandsomeLin: 上面多打一個data 靶他視為分開10/27 22:47
25FhandsomeLin: 簡而言之你post的資料少一層10/27 22:47
26FhandsomeLin: 寫成dict 或是 object形式的話大概就是 body = {data10/27 22:51
27FhandsomeLin: :{base:[],data:[]}}10/27 22:51
28FhandsomeLin: 可以的話可以傳網址給喔 我幫你測10/27 22:53
[問題][已解決] python 新手發問
[ Python ]10 留言, 推噓總分: +2
作者: yaochi - 發表於 2017/05/31 16:30(8年前)
3FhandsomeLin: 請去看webdriver支援的東西05/31 16:54
4FhandsomeLin: 順便問一下這什麼書05/31 16:55
[問題] 對python有幫助的其他課程?
[ Python ]28 留言, 推噓總分: +16
作者: Herodote - 發表於 2017/05/16 18:27(8年前)
17FhandsomeLin: 先打好script在跑吧05/17 10:13