发表评论取消回复
相关阅读
相关 python编程---example27
分子运动 import matplotlib.pyplot as plt from random_walk import RandomWa...
相关 python编程---example21
estaurant.py class Restaurant(): def __init__(self,name,cuisine_type): ...
相关 python编程---example19
ser.py class User(): def __init__(self,first_name,last_name,username,email...
相关 python编程---example16
这个例子是关于python module调用的,python module是 .py 的文件 pizza.py def make_pizza(s...
相关 python编程---example9
定一个字符串,找出没有重复字符的最长的子串。 def longest_substr(s): dic = {} start,maxlen,s...
相关 python编程---example8
一个数组,求其中两个数x,y,满足x的索引小于y的索引,使得 x-y 最大。 def max_drawdown(arr): assert len(ar...
相关 python编程---example7
写一下二分查找算法。给定一个有序数组 arr 和一个目标元素 target , def binary_search(arr,target): star...
相关 python编程---example6
定一个数组,求其最大连续子数组的和。 def max_sub_array(arr): n = len(arr) maxi,maxall = ...
相关 python编程---example5
写一个python脚本,输出你想要去的地方。 place = {} active = True while active: ...
相关 python编程---example2
写一个python脚本,格式化输出名字。 这个案列一共列举了四种写法: 1 def get_formatted_name(first_name,l...
还没有评论,来说两句吧...