From 1df5155cdc744c0ca6f060029c8e48c7cd40d3a2 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Fri, 29 Dec 2023 05:39:34 +0800 Subject: [PATCH] update --- .../bandstructure_of_graphene_on_high_symmetric_axes.py | 2 +- .../sorted_market_capitalization.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2020.09.30_bandstructure_of_graphene_on_high_symmetric_axes/bandstructure_of_graphene_on_high_symmetric_axes.py b/2020.09.30_bandstructure_of_graphene_on_high_symmetric_axes/bandstructure_of_graphene_on_high_symmetric_axes.py index a7c20c4..bf71821 100644 --- a/2020.09.30_bandstructure_of_graphene_on_high_symmetric_axes/bandstructure_of_graphene_on_high_symmetric_axes.py +++ b/2020.09.30_bandstructure_of_graphene_on_high_symmetric_axes/bandstructure_of_graphene_on_high_symmetric_axes.py @@ -5,7 +5,7 @@ The newest version of this code is on the web page: https://www.guanjihuan.com/a import numpy as np import matplotlib.pyplot as plt -from math import * # 引入sqrt(), pi, exp等 +from math import * # 引入sqrt(), exp(), pi等 import cmath # 要处理复数情况,用到cmath.exp() diff --git a/2023.12.28_sorted_market_capitalization/sorted_market_capitalization.py b/2023.12.28_sorted_market_capitalization/sorted_market_capitalization.py index eb6e581..d96c49e 100644 --- a/2023.12.28_sorted_market_capitalization/sorted_market_capitalization.py +++ b/2023.12.28_sorted_market_capitalization/sorted_market_capitalization.py @@ -13,4 +13,4 @@ for i0 in range(30): stock_symbol = stock_data[list_index[i0], 1] stock_name = stock_data[list_index[i0], 2] market_capitalization = stock_data[list_index[i0], 17]/1e8 - print(i0+1, stock_symbol, stock_name, market_capitalization) \ No newline at end of file + print([i0+1, stock_symbol, stock_name, market_capitalization]) \ No newline at end of file