|
-
- import csv
-
- import numpy as np
-
- # with open("data.csv") as f:
- # csv_reader = csv.reader(f)
- # for row in csv_reader:
- # print(row)
- #
- # import pandas as pd
- # df = pd.read_csv("data.csv", encoding="utf-8")
- # print(df)
- # df_array = np.array(df) # 将pandas读取的数据转化为array
- # df_list = df_array.tolist() # 将数组转化为list
- # print(df_list)
- # x = df[['name', 'age']]
- # print(x)
- # y = df[['name']]
- # print(y)
- # def aa():
- # num=3
- # while True:
- # if num==3:
- # return
- # print("aaaaaaaaaa")
- #
- # aa()
- # print("11111111")
|