摘要:
a = [ x for x in range(10)] a Out[2]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] b = [ x**2 for x in range(10)] b Out[4]: [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] 列表解 阅读全文
摘要:
dir(str) #看一下str下面有什么方法 help(str.upper) #看一下upper方法有什么用 Help on method_descriptor: upper(self, /) Return a copy of the string converted to uppercase. 阅读全文
摘要:
import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
摘要:
import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
摘要:
import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
摘要:
import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
摘要:
import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文