作者查詢 / venomsoul

總覽項目: 發文 | 留言 | 暱稱
作者 venomsoul 在 PTT [ Python ] 看板的留言(推文), 共65則
限定看板:Python
看板排序:
全部Gossiping53816Tech_Job1581LoL1042Hunter569WarCraft390Kaohsiung244MiHoYo243HI_3rd214TORIKO202H-GAME140HatePolitics130Hearthstone117cat113Miaoli95Shokugeki91Salary80C_Chat78eSports67Python65DIABLO63WOW62Beauty56NARUTO55L_TalkandCha45PlayStation39BERSERK37movie32joke30car27nCoV201926Tainan25Teacher25WarCraftChat25ArakawaCow23kekkai22home-sale19Lineage18PingTung17sex16IA14ask12PublicIssue11TaichungBun9WomenTalk9Stock8ChangHua7Hsinchu7ONE_PIECE7AfterPhD6FAIRYTAIL6NTU6Aviation5KOTDFansClub5MenTalk5Nangang5Sub_GOnline5AllTogether4CFantasy4Isayama4LoL_Picket4MuscleBeach4rent-exp4SENIORHIGH4specialman4Violation4YOLO4BigSanchung3CVS3graduate3Shu-Lin3Sub_Strategy3TokyoGhoul3About_Life2Baseball2BlizzHeroes2Chan_Mou2Chiayi2ComGame-Plan2dog2Hate2Lifeismoney2Marginalman2medstudent2ShuangHe2SouthPark2StupidClown2TamShui2Taoyuan2Test2Wanted2AI_Art1Anti-Cancer1Aves1BabyMother1Balloon1Bon_Jovi1Boy-Girl1ChemEng1ChungLi1Coffee1consumer1CSMU-D-War31DeathNote1EatToDie1Eng-Class1Finance1Food1ForeignEX1gallantry1Garena1gay1GossipPicket1Gov_owned1Headphone1HsinTien1HsinYi1HSNU_10851I-Lan1Interdiscip1iOS1Keelung1kochikame1KoreaStar1L_LifeJob1MayDay1MdnCNhistory1Militarylife1MobilePay1Nantou1NBA1NDHU-EE931NDMC-D621Neihu1Nethood1NetSecurity1NTHU_LST_93A1NTPU-LAND90B1NTUE-CS1021PC_Shopping1PhD1piano1PokemonGO1Ptt-Charity1PttHistory1Railway1Road_Running1RumikoTWorld1San-Ying1SayLove1SMSlife1SongShan1StockPicket1SuperHeroes1swim1Thailand1TPC_Police1True-Escape1TuCheng1Wanhua1WorkinChina1Yunlin1<< 收起看板(161)
首頁
上一頁
1
2
下一頁
尾頁
[問題] countif in a list?
[ Python ]22 留言, 推噓總分: +12
作者: harold1018 - 發表於 2022/08/15 01:14(4年前)
3Fvenomsoul: count = 008/15 11:25
4Fvenomsoul: for i in my_list:08/15 11:25
5Fvenomsoul: if i > 2:08/15 11:25
6Fvenomsoul: count += 108/15 11:25
7Fvenomsoul: return count08/15 11:25
8Fvenomsoul: 喔return那行多的,這不是函數08/15 11:29
[問題] 請問這程式該如何寫,不知該如何寫?
[ Python ]23 留言, 推噓總分: +2
作者: lightsky520 - 發表於 2022/04/17 00:19(4年前)
15Fvenomsoul: 先把a, b, c弄成list或tuple,然後把這個list或tuple04/18 00:19
16Fvenomsoul: 用list 生成式取其set放入list,然後用len判斷,反正04/18 00:19
17Fvenomsoul: 都排序好了04/18 00:19
首頁
上一頁
1
2
下一頁
尾頁