Retour à 用 Python 做商管程式設計（一）(Programming for Business Computing in Python (1))

# Avis et commentaires pour d'étudiants pour 用 Python 做商管程式設計（一）(Programming for Business Computing in Python (1)) par Université nationale de Taïwan

4.9
étoiles
283 évaluations
75 avis

Mar 03, 2019

Jun 23, 2018

Filtrer par :

## 1 - 25 sur 74 Avis pour 用 Python 做商管程式設計（一）(Programming for Business Computing in Python (1))

par Peter C

Jul 08, 2018

The course is useful. I enjoyed solving the practice quizzes, though it took a long time trying and debugging.

par Yockey C

Mar 03, 2019

par 政霖 賴

Sep 23, 2018

par Liu T Y

Nov 11, 2018

par 王光維

Aug 05, 2018

import math

n = int(input())

p = int(input())

d = int(input())

#print(n, p, d)

TownInfor = []

for i in range(n):

TownInfor.append(input().split())

for j in range(3):

TownInfor[i][j] = int(TownInfor[i][j])

#print(TownInfor)

TownDst = []

for i in range(n):

TownDst.append([])

for j in range(n):

DstSquare = (TownInfor[i][0] - TownInfor[j][0]) ** 2 + (TownInfor[i][1] - TownInfor[j][1]) ** 2

TownDst[i].append(float("%.2f" % math.sqrt(DstSquare)))

#for EveryRowInTownDst in TownDst:

#print(EveryRowInTownDst)

NumBase = 0

TotalPopInThisArea = 0

TownPriority = []

TotalCoverPop = 0

for i in range(n):

TotalPopInThisArea += TownInfor[i][2]

while NumBase < p or TotalPopInThisArea < TotalCoverPop:

BestTown = 0

MaxSumOfPop = 0

for i in range(n):

SumOfPop = 0

for j in range(n):

if float(TownDst[i][j]) <= float(d):

SumOfPop += TownInfor[j][2]

if MaxSumOfPop < SumOfPop:

BestTown = i

MaxSumOfPop = SumOfPop

#print(BestTown, MaxSumOfPop)

TownPriority.append(BestTown + 1)

TotalCoverPop += MaxSumOfPop

for i in range(BestTown, BestTown + 1):

for j in range(n):

if float(TownDst[i][j]) <= float(d):

TownInfor[j][2] = 0

#print(TownInfor)

NumBase += 1

print(TownPriority, TotalCoverPop)

par 蕭郁恬

Oct 27, 2019

The lecture is clear and comprehesive.

The only thing, which is a little annoying is that the lecture is mixed with Chinese and English words.

It's really uncomfortable to hear someone talking like this.

par Ya F H

Jun 23, 2018

par Ethen W

Dec 14, 2019

A fantastic resource for python beginner learner. I will recommend to all entries level people who wanna learn python.

par 宗聖 諸

May 07, 2018

It is very helpful for the people who is the first time used python!! Very nice and detailed explained.

par 陳璽元

May 07, 2018

par Ben

Oct 28, 2019

Learn a lot.

The course is interesting and challenging.

Got a sense of achievement

par 黃威棣

Jun 02, 2018

par 莊芯瑜

Aug 04, 2019

par jtc

Mar 03, 2019

par JIN-RANG L

Oct 04, 2018

，可是我覺得這門課讓我獲益超多的！

par Ellie H

May 23, 2018

par Alex

Apr 22, 2019

make sense! 相當好的資源, 尤其是課後的練習題質量相當好, 不像是為了出而出, 所以理解與計算起來都能有人碼一體的感覺, 謝謝孔教授

par Lusis

Sep 29, 2018

par 庭瑞 郭

Apr 10, 2018

Coursera真的非常麻煩... 測試資料複製之後不會自動換行

par Hui-Fang K

Oct 12, 2019

I wish I had this course 10 years earlier in my school days.

par 蕭聖尚

Apr 14, 2019

par Yun H H

Sep 01, 2018

par 谢沁昊

May 23, 2019

par 蔡政剛

Sep 04, 2019

par 心愉 方

Dec 04, 2018