摘要:
name_list = ['david bowie', 'louis armstrong', 'leonard cohen', 'bob dylan', 'cocteau twins'] n = 1 name_list.sort() for name in name_list: print(f'{n 阅读全文
posted @ 2021-04-02 17:29
彭锦荣
阅读(56)
评论(0)
推荐(0)
摘要:
name_list = ['david bowie', 'louis armstrong', 'leonard cohen', 'bob dylan', 'cocteau twins'] n = 1 for name in name_list: print(f'{n}: {name.title()} 阅读全文
posted @ 2021-04-02 16:52
彭锦荣
阅读(138)
评论(0)
推荐(0)
摘要:
x = input('请输入:') x = x.upper() x = x.replace('A', '') print(x) 阅读全文
posted @ 2021-04-02 16:48
彭锦荣
阅读(209)
评论(0)
推荐(0)
摘要:
x1, y1 = 1.2, 3.57 x2, y2 = 2.26, 8.7 print('{:-^40}'.format('输出1')) print('x1 = {}, y1 = {}'.format(x1, y1)) print('x2 = {}, y2 = {}'.format(x2, y2)) 阅读全文
posted @ 2021-04-02 16:27
彭锦荣
阅读(176)
评论(0)
推荐(0)
浙公网安备 33010602011771号