File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import adata
2+ import pandas as pd
3+ #显示所有列
4+ pd .set_option ('display.max_columns' , None )
5+ #显示所有行
6+ pd .set_option ('display.max_rows' , None )
7+ #设置value的显示长度为100,默认为50
8+ pd .set_option ('max_colwidth' ,100 )
9+ # k_type: k线类型:1.日;2.周;3.月 默认:1 日k
10+ res_df = adata .stock .market .get_market (stock_code = '000001' , k_type = 1 , start_date = '2023-01-01' )
11+ print (res_df )
12+ column_data = res_df ['change' ]
13+ print (column_data )
Original file line number Diff line number Diff line change 11i = 0
22while True :
33 i += 1
4- print (f"想茶茶的第 { i } 次" )
4+ print (f"想茶茶大人的第 { i } 次" )
55
Original file line number Diff line number Diff line change 11import random
22
33num = random .randint (1 , 100 )
4- i = 0
5- flag = True
4+ i = 0
5+ flag = True
66while flag :
77 guess = int (input ("请输入你猜想的数字(1-100):" ))
8- if num == guess :
8+ if num == guess :
99 print ("猜对了" )
10- flag = False
10+ flag = False
1111 else :
12- if num > guess :
12+ if num > guess :
1313 print ("小了" )
1414 else :
1515 print ("大了" )
16- i += 1
16+ i += 1
1717print (f"你总共猜了{ i } 次" )
You can’t perform that action at this time.
0 commit comments