随笔分类 -  Python基础

此处整理了Python的基础知识
摘要:zidian = {'干支': '壬寅年癸卯月甲戌日己巳時', '旬首': '己', '日空': '戌亥', '局数': '陽遁六局下元', '節氣': '春分', '值符值使': {'值符星宮': ['心', '兌'], '值使門宮': ['開', '坤']}, '天乙': '柱', ' 阅读全文
posted @ 2022-03-21 17:31 笑诺 阅读(91) 评论(0) 推荐(0)
摘要: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] 列表解 阅读全文
posted @ 2022-03-13 10:17 笑诺 阅读(38) 评论(0) 推荐(0)
摘要:dir(str) #看一下str下面有什么方法 help(str.upper) #看一下upper方法有什么用 Help on method_descriptor: upper(self, /) Return a copy of the string converted to uppercase. 阅读全文
posted @ 2022-03-12 11:45 笑诺 阅读(38) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
posted @ 2022-02-23 17:28 笑诺 阅读(95) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
posted @ 2022-02-20 12:20 笑诺 阅读(91) 评论(0) 推荐(0)
摘要:代码继续膨胀中: import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from 阅读全文
posted @ 2022-02-14 21:34 笑诺 阅读(50) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
posted @ 2022-02-10 18:29 笑诺 阅读(39) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
posted @ 2022-02-09 17:27 笑诺 阅读(75) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
posted @ 2022-02-08 20:49 笑诺 阅读(59) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Mon Jan 31 17:56:36 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import ma 阅读全文
posted @ 2022-02-07 18:06 笑诺 阅读(100) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i 阅读全文
posted @ 2022-02-06 21:17 笑诺 阅读(59) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Mon Jan 31 17:56:36 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import ma 阅读全文
posted @ 2022-02-01 22:13 笑诺 阅读(117) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Mon Jan 31 12:05:45 2022 找年干支 @author: Administrator """ niangan = {'辛':1, '壬':2, '癸':3, '甲':4, '乙':5, '丙':6, ' 阅读全文
posted @ 2022-01-31 13:35 笑诺 阅读(79) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat 阅读全文
posted @ 2022-01-26 21:11 笑诺 阅读(2583) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat 阅读全文
posted @ 2022-01-26 20:55 笑诺 阅读(27) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat 阅读全文
posted @ 2022-01-20 21:25 笑诺 阅读(53) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat 阅读全文
posted @ 2022-01-10 21:49 笑诺 阅读(40) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat 阅读全文
posted @ 2022-01-09 17:30 笑诺 阅读(25) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 11:49:44 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat 阅读全文
posted @ 2022-01-09 17:11 笑诺 阅读(60) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' gs = gridspec 阅读全文
posted @ 2022-01-09 12:17 笑诺 阅读(43) 评论(0) 推荐(0)