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
530 évaluations
131 avis

YC
2 mars 2019

YH
22 juin 2018

Filtrer par :

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

par Peter C

7 juil. 2018

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

par Yockey C

3 mars 2019

par 政霖 賴

23 sept. 2018

par Albert L

11 nov. 2018

par 王光維

5 août 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 Kate K

13 juin 2021

The course literally fits for everyone, really a good start for people not in computing majors. I didn't really have any programming experience before this (my short C++ course in college 20 yrs ago doesn't count as I didn't really have a chance to write a code). So, it was a real struggle to get through the exams. I am glad that I finally did it.

par 蕭郁恬

27 oct. 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 TEE S T

3 oct. 2020

This course makes learner understand how Python language applying to business environment. And, the course is good for beginner who is 0 knowledge about Pyhton.

par Ya F H

22 juin 2018

par 連恩

25 févr. 2021

par 張天恩

20 févr. 2020

par Ethen W

14 déc. 2019

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

par Chia-Ning L

3 juin 2021

homework takes lots of time. Do not trust coursera average time "30 min"! But learned a lot :) Enjoy the course!

par 宗聖 諸

7 mai 2018

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

par Hank Y

2 sept. 2020

par Peter K

21 mai 2020

par 陳璽元

6 mai 2018

par Ben

28 oct. 2019

Learn a lot.

The course is interesting and challenging.

Got a sense of achievement

par 黃威棣

2 juin 2018

par 莊芯瑜

4 août 2019

par 張哲源

1 oct. 2020

par d10530422陳杰彤

2 mars 2019

par JIN-RANG L

4 oct. 2018

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