北美微论坛

App下载
扫码下载 App
联系我们
1框架
查看: 2242|回复: 11

[CS/EE] python

[复制链接]

初中生

Rank: 2

发表于 2019-5-4 23:30:51 | 显示全部楼层 |阅读模式
v2-79e98ad4baeb002994090c4ab0a85b14_r.jpg

python代写-优美的代码是给你最好的礼物
python代写-python是一种对code空格,缩进有严格限制的scipt语言,一个优秀的python编程者他的代码必然是整齐划一,简洁优美。不少菜鸟写手概念混乱,甚至将java,c++里面的分号“;”引入到python,但其实纯净的python代码并不需要换行符。
以下:
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-5-4 23:31:06 | 显示全部楼层
def get_station_with_max_bikes(stations: List[list]) -> int: """Return the station ID of the station that has the most bikes available. If there is a tie for the most available, return the station ID that appears first in stations. Precondition: len(stations) > 0 >>> get_station_with_max_bikes(SAMPLE_STATIONS) 7088 """ # the number of the max bikes num = 0 # the id of the number of the max bikes max_id = 0 i1 = 0 while i1 != len(stations): i2 = 0 while i2 != len(stations[i1]): if i2 == ID: id = stations[i1][i2] if i2 == BIKES_AVAILABLE: if stations[i1][i2] > num: num = stations[i1][i2] max_id = id i2 = i2 + 1 i1 = i1 + 1 return max_id
我写的一份多大的python code如上。可以看到甚至docstring的长度比实际代码都多,我们不仅仅是能做完作业,还能做到最好。
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-5-4 23:32:08 | 显示全部楼层
python代写-朴素的方法,华丽的分数
同样的一份python作业,有些人会用复杂的方法,用完全超纲的三方python第三方库来编程,首先这种暴力实现是不符合教授的出题目的;其次,由于超过了上课的范围,这种方式并不能拿到高分。下面就贴出两份代码,第一份是其他代写的超纲代码,第二份是我帮助那位同学补救的合格代码。
以下:
fig = plt.figure(figsize=(10,10)) rect = [0.5,0.5,0.4,0.4] wa = WindroseAxes(fig, rect) fig.add_axes(wa) wa.bar(df.direction, df.speed, normed=True, opening=0.8, edgecolor='white') wa.legend('lower right')
ax = plt.subplot(111, projection='polar') min_speed = min(df.speed) max_speed = max(df.speed) interval = (max_speed - min_speed) / 4 speed_interval_1 = min_speed + interval speed_interval_2 = min_speed + interval * 2 speed_interval_3 = min_speed + interval * 3 speed_interval_4 = max_speed dr_labels = [0, 1, 2, 3, 4, 5, 6, 7] wind_1 = df[df.speed lt speed_interval_1] wind_1_dr = get_number_dr(wind_1['direction'].values) print(wind_1_dr)

两份代码看似最终运行结果都是饼状图,甚至windrose这种第三方库比matplotlib画polar graph效果还要好,可是超纲就是超纲,我拿了满分,超纲代码只能是零分。
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-5-4 23:32:58 | 显示全部楼层
python代写-闪电式编程,可8H加急
我们进行24小时轮换,白天和黑夜轮流编码,让你可以浪到最后一秒来找我们都没事。两到三周的python assignment我们愿意几个小时加急写出来。还可以进行接盘服务,如果前一次作业别的代写坑你了,我们可以重写fail了的代码,并接着下一次的assignment。总之-Fail the course,absolutely impossible!
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-5-4 23:34:16 | 显示全部楼层
python代写-do not hesitate to contact me!
WeChat:lovexc60
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-5-24 19:17:24 | 显示全部楼层
nice
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-6-2 03:01:56 | 显示全部楼层
upupupupup
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-6-3 02:40:06 | 显示全部楼层
upupupupupupupupupupupup
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-6-9 02:59:22 | 显示全部楼层
upupupup
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-6-10 01:55:44 | 显示全部楼层
大家多看看呀
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-6-17 03:27:35 | 显示全部楼层
upupupupup
回复

使用道具 举报

初中生

Rank: 2

 楼主| 发表于 2019-6-20 19:44:07 | 显示全部楼层
upupupup
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部