随笔分类 - Python基础
此处整理了Python的基础知识
摘要:zidian = {'干支': '壬寅年癸卯月甲戌日己巳時', '旬首': '己', '日空': '戌亥', '局数': '陽遁六局下元', '節氣': '春分', '值符值使': {'值符星宮': ['心', '兌'], '值使門宮': ['開', '坤']}, '天乙': '柱', '
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Mon Jan 31 17:56:36 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import ma
阅读全文
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' from qimen3 i
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Mon Jan 31 17:56:36 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import ma
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Mon Jan 31 12:05:45 2022 找年干支 @author: Administrator """ niangan = {'辛':1, '壬':2, '癸':3, '甲':4, '乙':5, '丙':6, '
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 17:13:01 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat
阅读全文
摘要:# -*- coding: utf-8 -*- """ Created on Sun Jan 9 11:49:44 2022 @author: Administrator """ import matplotlib.pyplot as plt import matplotlib import mat
阅读全文
摘要:import matplotlib.pyplot as plt import matplotlib import matplotlib.gridspec as gridspec matplotlib.rcParams['font.family'] = 'FangSong' gs = gridspec
阅读全文

浙公网安备 33010602011771号