Python Connect SQLServer 2008

news2025/1/18 11:50:00

Macos(经过了两天,无数次的方法验证,寻找各种资料,总结如下)
brew install freetds@0.91 如果出现错误就进行手工安装

brew install freedts@0.91
出错。
linql@linqldeMBP-2 / % brew install freetds@0.91
Warning: No available formula with the name "freetds@0.91". Did you mean freetds?
==> Searching for similarly named formulae...
This similarly named formula was found:
freetds
To install it, run:
  brew install freetds
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps

手工安装,下载文件
解决freetds安装问题
下载fresstds,下载链接:http://mirrors.ibiblio.org/freetds/stable/
在这里插入图片描述
1、tar -xvf freetds-0.91.tar.gz
2、cd freetds-0.91
3、./configure --prefix=/usr/local/freetds0.91 --enable-msdblib --with-tdsver=7.1
4、make
5、sudo make install
6、brew link --force freetds@0.91
7、tsql -C 查看信息

(base) lizhongsu@lizhongdeMacBook-Air 0.91.49 % tsql -C
Compile-time settings (established with the "configure" script)
                            Version: freetds v0.91.49
             freetds.conf directory: /usr/local/Cellar/freetds/0.91.49/etc
     MS db-lib source compatibility: no
        Sybase binary compatibility: no
                      Thread safety: yes
                      iconv library: yes
                        TDS version: 5.0
                              iODBC: no
                           unixodbc: no
              SSPI "trusted" logins: no
                           Kerberos: no

8、pip3 install pymssql (安装的是2.2.9版本,最新版本)
9、修改配置文件macos

pymssql needs freetds to work properly. On macOS, 
open /usr/local/etc/freetds.conf in your preferred text editor, 
and update the following configuration:

[global]
# TDS protocol version
# tds version = auto
tds version = 7.0

Python 代码

"""
Connects to a SQL database using pymssql
"""
import pymssql

import os
os.environ['TDSDUMP'] = 'stdout'
conn = pymssql.connect(
    host='数据库主机',
    server='.',
    port='端口',
    user='用户',
    password='密码7',
    database='数据库',
    as_dict=True,
    charset="CP936"
)

# 创建游标对象
cursor = conn.cursor()

# 执行SQL查询
cursor.execute('SELECT * FROM allloginuser')

# 获取查询结果
result = cursor.fetchall()

# 打印查询结果
for row in result:
    print(row)

# 关闭连接
conn.close()

执行结果

/Users/lizhongsu/PycharmProjects/printTable/venv/bin/python /Users/lizhongsu/PycharmProjects/printTable/sqlMssql.py
log.c:196:Starting log file for FreeTDS 0.91.49
	on 2023-10-18 22:54:05 with debug flags 0x4fff.
config.c:714:Setting 'dump_file' to 'stdout' from $TDSDUMP.
iconv.c:330:tds_iconv_open(0x7f93f470dec0, CP936)
iconv.c:187:local name for ISO-8859-1 is ISO-8859-1
iconv.c:187:local name for UTF-8 is UTF-8
iconv.c:187:local name for UCS-2LE is UCS-2LE
iconv.c:187:local name for UCS-2BE is UCS-2BE
iconv.c:349:setting up conversions for client charset "CP936"
iconv.c:351:preparing iconv for "CP936" <-> "UCS-2LE" conversion
iconv.c:391:preparing iconv for "ISO-8859-1" <-> "UCS-2LE" conversion
iconv.c:394:tds_iconv_open: done
net.c:205:Connecting to 8.142.130.213 port 28991 (TDS version 7.0)
net.c:270:tds_open_socket: connect(2) returned "Operation now in progress"
net.c:310:tds_open_socket() succeeded
util.c:156:Changed query state from DEAD to IDLE
login.c:782:quietly sending TDS 7+ login packet
token.c:328:tds_process_login_tokens()
net.c:555:Received header
0000 04 01 01 b0 00 37 01 00-                        |....7..|

net.c:609:Received packet
0000 04 01 01 b0 00 37 01 00-e3 25 00 01 0b 68 00 68 |....7..%...h.h|
0010 00 65 00 72 00 70 00 6d-00 61 00 73 00 74 00 65 |.e.r.p.m .a.s.t.e|
0020 00 72 00 06 6d 00 61 00-73 00 74 00 65 00 72 00 |.r..m.a. s.t.e.r.|
0030 ab 5e 00 45 16 00 00 02-00 1a 00 f2 5d 06 5c 70 |^.E.... ...].\p|
0040 65 6e 63 93 5e 0a 4e 0b-4e 87 65 f4 66 39 65 3a |enc.^.N. N.e�f9e:|
0050 4e 20 00 27 00 68 00 68-00 65 00 72 00 70 00 6d |N .'.h.h .e.r.p.m|
0060 00 61 00 73 00 74 00 65-00 72 00 27 00 02 30 0f |.a.s.t.e .r.'..0.|
0070 69 00 5a 00 6d 00 6e 00-61 00 31 00 33 00 31 00 |i.Z.m.n. a.1.3.1.|
0080 63 00 36 00 7a 00 32 00-6a 00 6d 00 5a 00 00 01 |c.6.z.2. j.m.Z...|
0090 00 e3 17 00 02 0a 75 00-73 00 5f 00 65 00 6e 00 |.....u. s._.e.n.|
00a0 67 00 6c 00 69 00 73 00-68 00 00 ab 78 00 47 16 |g.l.i.s. h..�x.G.|
00b0 00 00 01 00 27 00 43 00-68 00 61 00 6e 00 67 00 |....'.C. h.a.n.g.|
00c0 65 00 64 00 20 00 6c 00-61 00 6e 00 67 00 75 00 |e.d. .l. a.n.g.u.|
00d0 61 00 67 00 65 00 20 00-73 00 65 00 74 00 74 00 |a.g.e. . s.e.t.t.|
00e0 69 00 6e 00 67 00 20 00-74 00 6f 00 20 00 75 00 |i.n.g. . t.o. .u.|
00f0 73 00 5f 00 65 00 6e 00-67 00 6c 00 69 00 73 00 |s._.e.n. g.l.i.s.|
0100 68 00 2e 00 0f 69 00 5a-00 6d 00 6e 00 61 00 31 |h....i.Z .m.n.a.1|
0110 00 33 00 31 00 63 00 36-00 7a 00 32 00 6a 00 6d |.3.1.c.6 .z.2.j.m|
0120 00 5a 00 00 01 00 e3 0f-00 03 05 63 00 70 00 39 |.Z..... ...c.p.9|
0130 00 33 00 36 00 01 00 00-e3 0b 00 05 04 32 00 30 |.3.6........2.0|
0140 00 35 00 32 00 00 e3 0f-00 06 06 31 00 39 00 36 |.5.2... ...1.9.6|
0150 00 36 00 30 00 39 00 00-ad 36 00 01 07 00 00 00 |.6.0.9..6......|
0160 16 4d 00 69 00 63 00 72-00 6f 00 73 00 6f 00 66 |.M.i.c.r .o.s.o.f|
0170 00 74 00 20 00 53 00 51-00 4c 00 20 00 53 00 65 |.t. .S.Q .L. .S.e|
0180 00 72 00 76 00 65 00 72-00 00 00 00 00 0a 32 06 |.r.v.e.r ......2.|
0190 40 e3 13 00 04 04 34 00-30 00 39 00 36 00 04 34 |@�....4. 0.9.6..4|
01a0 00 30 00 39 00 36 00 fd-00 00 00 00 00 00 00 00 |.0.9.6.........|

token.c:337:looking for login token, got  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
dblib.c:327:db_env_chg(0x7f93f470dec0, 1, master, hherpmaster)
token.c:337:looking for login token, got  ab(INFO)
token.c:122:tds_process_default_tokens() marker is ab(INFO)
token.c:2588:tds_process_msg() reading message 5701 from server
token.c:2661:tds_process_msg() calling client msg handler
dbutil.c:85:_dblib_handle_info_message(0x7f93f470aca0, 0x7f93f470dec0, 0x7ffeef4fec30)
dbutil.c:86:msgno 5701: "�ѽ����ݿ������ĸ���Ϊ 'hherpmaster'��"
token.c:2674:tds_process_msg() returning TDS_SUCCEED
token.c:337:looking for login token, got  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
dblib.c:327:db_env_chg(0x7f93f470dec0, 2, , us_english)
token.c:337:looking for login token, got  ab(INFO)
token.c:122:tds_process_default_tokens() marker is ab(INFO)
token.c:2588:tds_process_msg() reading message 5703 from server
token.c:2661:tds_process_msg() calling client msg handler
dbutil.c:85:_dblib_handle_info_message(0x7f93f470aca0, 0x7f93f470dec0, 0x7ffeef4fec30)
dbutil.c:86:msgno 5703: "Changed language setting to us_english."
token.c:2674:tds_process_msg() returning TDS_SUCCEED
token.c:337:looking for login token, got  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
token.c:2493:server indicated charset change to "cp936"
iconv.c:988:setting server single-byte charset to "CP936"
dblib.c:327:db_env_chg(0x7f93f470dec0, 3, , cp936)
token.c:337:looking for login token, got  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
dblib.c:327:db_env_chg(0x7f93f470dec0, 5, , 2052)
token.c:337:looking for login token, got  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
dblib.c:327:db_env_chg(0x7f93f470dec0, 6, , 196609)
token.c:337:looking for login token, got  ad(LOGINACK)
token.c:373:server reports TDS version 7.0.0.0
token.c:375:Product name for 0x7000000 is 7.0
token.c:337:looking for login token, got  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
token.c:2477:changing block size from 4096 to 4096
dblib.c:327:db_env_chg(0x7f93f470dec0, 4, 4096, 4096)
token.c:337:looking for login token, got  fd(DONE)
token.c:122:tds_process_default_tokens() marker is fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2355:tds_process_end() state set to TDS_IDLE
token.c:2370:                rows_affected = 0
token.c:438:tds_process_login_tokens() returning TDS_SUCCEED
mem.c:615:tds_free_all_results()
util.c:156:Changed query state from IDLE to QUERYING
write.c:140:tds_put_string converting 19 bytes of "set textsize 64512 "
write.c:168:tds_put_string wrote 38 bytes
util.c:156:Changed query state from QUERYING to PENDING
net.c:741:Sending packet
0000 01 01 00 2e 00 00 00 00-73 00 65 00 74 00 20 00 |........ s.e.t. .|
0010 74 00 65 00 78 00 74 00-73 00 69 00 7a 00 65 00 |t.e.x.t. s.i.z.e.|
0020 20 00 36 00 34 00 35 00-31 00 32 00 20 00       | .6.4.5. 1.2. .|

token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4fed10, 0x7ffeef4fed14, 0x100)
util.c:156:Changed query state from PENDING to READING
net.c:555:Received header
0000 04 01 00 11 00 37 01 00-                        |.....7..|

net.c:609:Received packet
0000 04 01 00 11 00 37 01 00-fd 00 00 be 00 00 00 00 |.....7........|
0010 00                     -                        |.|

token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2355:tds_process_end() state set to TDS_IDLE
util.c:156:Changed query state from READING to IDLE
token.c:2370:                rows_affected = 0
util.c:104:logic error: cannot change query state from IDLE to PENDING
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4fed10, 0x7ffeef4fed14, 0x100)
token.c:543:tds_process_tokens() state is COMPLETED
dblib.c:239:dblib_add_connection(0x100f8e430, 0x7f93f470dec0)
dblib.c:739:dbloginfree(0x7f93f470fc30)
dblib.c:1312:dbcmd(0x7f93f4717dd0, SET ARITHABORT ON;SET CONCAT_NULL_YIELDS_NULL ON;SET ANSI_NULLS ON;SET ANSI_NULL_DFLT_ON ON;SET ANSI_PADDING ON;SET ANSI_WARNINGS ON;SET ANSI_NULL_DFLT_ON ON;SET CURSOR_CLOSE_ON_COMMIT ON;SET QUOTED_IDENTIFIER ON;SET TEXTSIZE 2147483647;)
dblib.c:1319:dbcmd() bufsz = 0
dblib.c:6862:dbsqlsend(0x7f93f4717dd0)
mem.c:615:tds_free_all_results()
util.c:156:Changed query state from IDLE to QUERYING
write.c:140:tds_put_string converting 237 bytes of "SET ARITHABORT ON;SET CONCAT_NULL_YIELDS_NULL ON;SET ANSI_NULLS ON;SET ANSI_NULL_DFLT_ON ON;SET ANSI_PADDING ON;SET ANSI_WARNINGS ON;SET ANSI_NULL_DFLT_ON ON;SET CURSOR_CLOSE_ON_COMMIT ON;SET QUOTED_IDENTIFIER ON;SET TEXTSIZE 2147483647;"
write.c:140:tds_put_string converting 109 bytes of "S ON;SET ANSI_NULL_DFLT_ON ON;SET CURSOR_CLOSE_ON_COMMIT ON;SET QUOTED_IDENTIFIER ON;SET TEXTSIZE 2147483647;"
write.c:168:tds_put_string wrote 474 bytes
util.c:156:Changed query state from QUERYING to PENDING
net.c:741:Sending packet
0000 01 01 01 e2 00 00 01 00-53 00 45 00 54 00 20 00 |....... S.E.T. .|
0010 41 00 52 00 49 00 54 00-48 00 41 00 42 00 4f 00 |A.R.I.T. H.A.B.O.|
0020 52 00 54 00 20 00 4f 00-4e 00 3b 00 53 00 45 00 |R.T. .O. N.;.S.E.|
0030 54 00 20 00 43 00 4f 00-4e 00 43 00 41 00 54 00 |T. .C.O. N.C.A.T.|
0040 5f 00 4e 00 55 00 4c 00-4c 00 5f 00 59 00 49 00 |_.N.U.L. L._.Y.I.|
0050 45 00 4c 00 44 00 53 00-5f 00 4e 00 55 00 4c 00 |E.L.D.S. _.N.U.L.|
0060 4c 00 20 00 4f 00 4e 00-3b 00 53 00 45 00 54 00 |L. .O.N. ;.S.E.T.|
0070 20 00 41 00 4e 00 53 00-49 00 5f 00 4e 00 55 00 | .A.N.S. I._.N.U.|
0080 4c 00 4c 00 53 00 20 00-4f 00 4e 00 3b 00 53 00 |L.L.S. . O.N.;.S.|
0090 45 00 54 00 20 00 41 00-4e 00 53 00 49 00 5f 00 |E.T. .A. N.S.I._.|
00a0 4e 00 55 00 4c 00 4c 00-5f 00 44 00 46 00 4c 00 |N.U.L.L. _.D.F.L.|
00b0 54 00 5f 00 4f 00 4e 00-20 00 4f 00 4e 00 3b 00 |T._.O.N.  .O.N.;.|
00c0 53 00 45 00 54 00 20 00-41 00 4e 00 53 00 49 00 |S.E.T. . A.N.S.I.|
00d0 5f 00 50 00 41 00 44 00-44 00 49 00 4e 00 47 00 |_.P.A.D. D.I.N.G.|
00e0 20 00 4f 00 4e 00 3b 00-53 00 45 00 54 00 20 00 | .O.N.;. S.E.T. .|
00f0 41 00 4e 00 53 00 49 00-5f 00 57 00 41 00 52 00 |A.N.S.I. _.W.A.R.|
0100 4e 00 49 00 4e 00 47 00-53 00 20 00 4f 00 4e 00 |N.I.N.G. S. .O.N.|
0110 3b 00 53 00 45 00 54 00-20 00 41 00 4e 00 53 00 |;.S.E.T.  .A.N.S.|
0120 49 00 5f 00 4e 00 55 00-4c 00 4c 00 5f 00 44 00 |I._.N.U. L.L._.D.|
0130 46 00 4c 00 54 00 5f 00-4f 00 4e 00 20 00 4f 00 |F.L.T._. O.N. .O.|
0140 4e 00 3b 00 53 00 45 00-54 00 20 00 43 00 55 00 |N.;.S.E. T. .C.U.|
0150 52 00 53 00 4f 00 52 00-5f 00 43 00 4c 00 4f 00 |R.S.O.R. _.C.L.O.|
0160 53 00 45 00 5f 00 4f 00-4e 00 5f 00 43 00 4f 00 |S.E._.O. N._.C.O.|
0170 4d 00 4d 00 49 00 54 00-20 00 4f 00 4e 00 3b 00 |M.M.I.T.  .O.N.;.|
0180 53 00 45 00 54 00 20 00-51 00 55 00 4f 00 54 00 |S.E.T. . Q.U.O.T.|
0190 45 00 44 00 5f 00 49 00-44 00 45 00 4e 00 54 00 |E.D._.I. D.E.N.T.|
01a0 49 00 46 00 49 00 45 00-52 00 20 00 4f 00 4e 00 |I.F.I.E. R. .O.N.|
01b0 3b 00 53 00 45 00 54 00-20 00 54 00 45 00 58 00 |;.S.E.T.  .T.E.X.|
01c0 54 00 53 00 49 00 5a 00-45 00 20 00 32 00 31 00 |T.S.I.Z. E. .2.1.|
01d0 34 00 37 00 34 00 38 00-33 00 36 00 34 00 37 00 |4.7.4.8. 3.6.4.7.|
01e0 3b 00                  -                        |;.|

dblib.c:4639:dbsqlok(0x7f93f4717dd0)
dblib.c:4669:dbsqlok() not done, calling tds_process_tokens()
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff114, 0x7ffeef4ff124, 0x6914)
util.c:156:Changed query state from PENDING to READING
net.c:555:Received header
0000 04 01 00 59 00 37 01 00-                        |...Y.7..|

net.c:609:Received packet
0000 04 01 00 59 00 37 01 00-fd 01 00 b9 00 00 00 00 |...Y.7........|
0010 00 fd 01 00 b9 00 00 00-00 00 fd 01 00 b9 00 00 |...... ......|
0020 00 00 00 fd 01 00 b9 00-00 00 00 00 fd 01 00 b9 |...... ......|
0030 00 00 00 00 00 fd 01 00-b9 00 00 00 00 00 fd 01 |.............|
0040 00 b9 00 00 00 00 00 fd-01 00 b9 00 00 00 00 00 |.............|
0050 fd 00 00 be 00 00 00 00-00                      |...... .|

token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
util.c:156:Changed query state from READING to PENDING
dblib.c:4707:dbsqlok() end status is SUCCEED
dblib.c:4718:dbsqlok() end status was success
dblib.c:3196:dbcancel(0x7f93f4717dd0)
query.c:2155:tds_send_cancel: not in_cancel and not idle
query.c:2164:tds_send_cancel: sending cancel packet
net.c:741:Sending packet
0000 06 01 00 08 00 00 01 00-                        |........|

token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff13c, 0x0, 0x0)
util.c:156:Changed query state from PENDING to READING
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 1
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2370:                rows_affected = 0
net.c:555:Received header
0000 04 01 00 11 00 37 01 00-                        |.....7..|

net.c:609:Received packet
0000 04 01 00 11 00 37 01 00-fd 20 00 fd 00 00 00 00 |.....7.......|
0010 00                     -                        |.|

token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 1
		error = 0
		done_count_valid = 0
token.c:2355:tds_process_end() state set to TDS_IDLE
util.c:156:Changed query state from READING to IDLE
token.c:2370:                rows_affected = 0
dblib.c:1398:dbuse(0x7f93f4717dd0, hherpmaster)
dblib.c:1312:dbcmd(0x7f93f4717dd0, use [hherpmaster])
dblib.c:1319:dbcmd() bufsz = 238
dblib.c:5882:dbfreebuf(0x7f93f4717dd0)
dblib.c:1369:dbsqlexec(0x7f93f4717dd0)
dblib.c:6862:dbsqlsend(0x7f93f4717dd0)
mem.c:615:tds_free_all_results()
util.c:156:Changed query state from IDLE to QUERYING
write.c:140:tds_put_string converting 17 bytes of "use [hherpmaster]"
write.c:168:tds_put_string wrote 34 bytes
util.c:156:Changed query state from QUERYING to PENDING
net.c:741:Sending packet
0000 01 01 00 2a 00 00 01 00-75 00 73 00 65 00 20 00 |...*.... u.s.e. .|
0010 5b 00 68 00 68 00 65 00-72 00 70 00 6d 00 61 00 |[.h.h.e. r.p.m.a.|
0020 73 00 74 00 65 00 72 00-5d 00                   |s.t.e.r. ].|

dblib.c:4639:dbsqlok(0x7f93f4717dd0)
dblib.c:4669:dbsqlok() not done, calling tds_process_tokens()
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff0b4, 0x7ffeef4ff0c4, 0x6914)
util.c:156:Changed query state from PENDING to READING
net.c:555:Received header
0000 04 01 00 c4 00 37 01 00-                        |....7..|

net.c:609:Received packet
0000 04 01 00 c4 00 37 01 00-e3 2f 00 01 0b 68 00 68 |....7../...h.h|
0010 00 65 00 72 00 70 00 6d-00 61 00 73 00 74 00 65 |.e.r.p.m .a.s.t.e|
0020 00 72 00 0b 68 00 68 00-65 00 72 00 70 00 6d 00 |.r..h.h. e.r.p.m.|
0030 61 00 73 00 74 00 65 00-72 00 ab 7e 00 45 16 00 |a.s.t.e. r.~.E..|
0040 00 01 00 2a 00 43 00 68-00 61 00 6e 00 67 00 65 |...*.C.h .a.n.g.e|
0050 00 64 00 20 00 64 00 61-00 74 00 61 00 62 00 61 |.d. .d.a .t.a.b.a|
0060 00 73 00 65 00 20 00 63-00 6f 00 6e 00 74 00 65 |.s.e. .c .o.n.t.e|
0070 00 78 00 74 00 20 00 74-00 6f 00 20 00 27 00 68 |.x.t. .t .o. .'.h|
0080 00 68 00 65 00 72 00 70-00 6d 00 61 00 73 00 74 |.h.e.r.p .m.a.s.t|
0090 00 65 00 72 00 27 00 2e-00 0f 69 00 5a 00 6d 00 |.e.r.'.. ..i.Z.m.|
00a0 6e 00 61 00 31 00 33 00-31 00 63 00 36 00 7a 00 |n.a.1.3. 1.c.6.z.|
00b0 32 00 6a 00 6d 00 5a 00-00 01 00 fd 00 00 e2 00 |2.j.m.Z. ......|
00c0 00 00 00 00            -                        |....|

token.c:555:processing result tokens.  marker is  e3(ENVCHANGE)
token.c:122:tds_process_default_tokens() marker is e3(ENVCHANGE)
dblib.c:327:db_env_chg(0x7f93f470dec0, 1, hherpmaster, hherpmaster)
token.c:555:processing result tokens.  marker is  ab(INFO)
token.c:122:tds_process_default_tokens() marker is ab(INFO)
token.c:2588:tds_process_msg() reading message 5701 from server
token.c:2661:tds_process_msg() calling client msg handler
dbutil.c:85:_dblib_handle_info_message(0x7f93f470aca0, 0x7f93f470dec0, 0x7ffeef4fef30)
dbutil.c:86:msgno 5701: "Changed database context to 'hherpmaster'."
token.c:2674:tds_process_msg() returning TDS_SUCCEED
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2355:tds_process_end() state set to TDS_IDLE
util.c:156:Changed query state from READING to IDLE
token.c:2370:                rows_affected = 0
util.c:104:logic error: cannot change query state from IDLE to PENDING
dblib.c:4707:dbsqlok() end status is SUCCEED
dblib.c:4718:dbsqlok() end status was success
dblib.c:1668:dbresults(0x7f93f4717dd0)
dblib.c:1674:dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
dblib.c:1657:dbresults returning 1 (SUCCEED)
dblib.c:5854:dbcanquery(0x7f93f4717dd0)
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff10c, 0x0, 0x108)
token.c:543:tds_process_tokens() state is COMPLETED
dblib.c:3196:dbcancel(0x7f93f4717dd0)
query.c:2155:tds_send_cancel: not in_cancel and idle
dblib.c:1312:dbcmd(0x7f93f4717dd0, BEGIN TRAN)
dblib.c:1319:dbcmd() bufsz = 18
dblib.c:5882:dbfreebuf(0x7f93f4717dd0)
dblib.c:6862:dbsqlsend(0x7f93f4717dd0)
mem.c:615:tds_free_all_results()
util.c:156:Changed query state from IDLE to QUERYING
write.c:140:tds_put_string converting 10 bytes of "BEGIN TRAN"
write.c:168:tds_put_string wrote 20 bytes
util.c:156:Changed query state from QUERYING to PENDING
net.c:741:Sending packet
0000 01 01 00 1c 00 00 01 00-42 00 45 00 47 00 49 00 |........ B.E.G.I.|
0010 4e 00 20 00 54 00 52 00-41 00 4e 00             |N. .T.R. A.N.|

dblib.c:4639:dbsqlok(0x7f93f4717dd0)
dblib.c:4669:dbsqlok() not done, calling tds_process_tokens()
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff0f4, 0x7ffeef4ff104, 0x6914)
util.c:156:Changed query state from PENDING to READING
net.c:555:Received header
0000 04 01 00 11 00 37 01 00-                        |.....7..|

net.c:609:Received packet
0000 04 01 00 11 00 37 01 00-fd 00 00 d4 00 00 00 00 |.....7........|
0010 00                     -                        |.|

token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 0
		error = 0
		done_count_valid = 0
token.c:2355:tds_process_end() state set to TDS_IDLE
util.c:156:Changed query state from READING to IDLE
token.c:2370:                rows_affected = 0
util.c:104:logic error: cannot change query state from IDLE to PENDING
dblib.c:4707:dbsqlok() end status is SUCCEED
dblib.c:4718:dbsqlok() end status was success
dblib.c:1668:dbresults(0x7f93f4717dd0)
dblib.c:1674:dbresults: dbresults_state is 5 (_DB_RES_SUCCEED)
dblib.c:1657:dbresults returning 1 (SUCCEED)
dblib.c:2761:dbcount(0x7f93f4717dd0)
dblib.c:3196:dbcancel(0x7f93f4717dd0)
query.c:2155:tds_send_cancel: not in_cancel and idle
dblib.c:3196:dbcancel(0x7f93f4717dd0)
query.c:2155:tds_send_cancel: not in_cancel and idle
dblib.c:1312:dbcmd(0x7f93f4717dd0, SELECT * FROM allloginuser)
dblib.c:1319:dbcmd() bufsz = 11
dblib.c:5882:dbfreebuf(0x7f93f4717dd0)
dblib.c:6862:dbsqlsend(0x7f93f4717dd0)
mem.c:615:tds_free_all_results()
util.c:156:Changed query state from IDLE to QUERYING
write.c:140:tds_put_string converting 26 bytes of "SELECT * FROM allloginuser"
write.c:168:tds_put_string wrote 52 bytes
util.c:156:Changed query state from QUERYING to PENDING
net.c:741:Sending packet
0000 01 01 00 3c 00 00 01 00-53 00 45 00 4c 00 45 00 |...<.... S.E.L.E.|
0010 43 00 54 00 20 00 2a 00-20 00 46 00 52 00 4f 00 |C.T. .*.  .F.R.O.|
0020 4d 00 20 00 61 00 6c 00-6c 00 6c 00 6f 00 67 00 |M. .a.l. l.l.o.g.|
0030 69 00 6e 00 75 00 73 00-65 00 72 00             |i.n.u.s. e.r.|

dblib.c:4639:dbsqlok(0x7f93f4717dd0)
dblib.c:4669:dbsqlok() not done, calling tds_process_tokens()
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff324, 0x7ffeef4ff334, 0x6914)
util.c:156:Changed query state from PENDING to READING
net.c:555:Received header
0000 04 01 01 13 00 37 01 00-                        |.....7..|

net.c:609:Received packet
0000 04 01 01 13 00 37 01 00-81 08 00 00 00 10 00 38 |.....7.. .......8|
0010 08 61 00 6c 00 75 00 4f-00 72 00 64 00 65 00 72 |.a.l.u.O .r.d.e.r|
0020 00 00 00 08 00 a7 32 00-08 7a 00 74 00 44 00 42 |.....2. .z.t.D.B|
0030 00 4e 00 61 00 6d 00 65-00 00 00 08 00 a7 32 00 |.N.a.m.e .....2.|
0040 0a 7a 00 74 00 46 00 75-00 6c 00 6c 00 4e 00 61 |.z.t.F.u .l.l.N.a|
0050 00 6d 00 65 00 00 00 08-00 a7 50 00 07 65 00 74 |.m.e.... .�P..e.t|
0060 00 79 00 70 00 65 00 49-00 64 00 00 00 08 00 a7 |.y.p.e.I .d.....|
0070 50 00 09 65 00 74 00 79-00 70 00 65 00 43 00 6f |P..e.t.y .p.e.C.o|
0080 00 64 00 65 00 00 00 08-00 a7 50 00 09 65 00 74 |.d.e.... .�P..e.t|
0090 00 79 00 70 00 65 00 4e-00 61 00 6d 00 65 00 00 |.y.p.e.N .a.m.e..|
00a0 00 09 00 a7 32 00 08 70-00 61 00 73 00 73 00 57 |...2..p .a.s.s.W|
00b0 00 6f 00 72 00 64 00 00-00 09 00 a7 14 00 05 4b |.o.r.d.. ......K|
00c0 00 65 00 79 00 4e 00 6f-00 d1 01 00 00 00 06 00 |.e.y.N.o .......|
00d0 79 61 6e 73 68 69 14 00-79 61 6e 73 68 69 28 bb |yanshi.. yanshi(|
00e0 d4 bb cd d1 dd ca be d5-cb cc d7 29 05 00 30 30 |Ի���ʾ� ���)..00|
00f0 30 30 30 09 00 30 30 30-30 30 30 30 30 30 06 00 |000..000 000000..|
0100 b9 dc c0 ed d4 b1 00 00-00 00 fd 10 00 c1 00 01 |����Ա.. ......|
0110 00 00 00               -                        |...|

token.c:555:processing result tokens.  marker is  81(TDS7_RESULT)
token.c:1515:processing TDS7 result metadata.
mem.c:615:tds_free_all_results()
token.c:1540:set current_results (8 columns) to tds->res_info
token.c:1547:setting up 8 columns
token.c:1486:tds7_get_data_info: 
	colname = aluOrder (8 bytes)
	type = 56 (int)
	server's type = 56 (int)
	column_varint_size = 0
	column_size = 4 (4 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 50
	Client charset: CP936
	Client column_size: 100
token.c:1486:tds7_get_data_info: 
	colname = ztDBName (8 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 100 (50 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 50
	Client charset: CP936
	Client column_size: 100
token.c:1486:tds7_get_data_info: 
	colname = ztFullName (10 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 100 (50 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 80
	Client charset: CP936
	Client column_size: 160
token.c:1486:tds7_get_data_info: 
	colname = etypeId (7 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 160 (80 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 80
	Client charset: CP936
	Client column_size: 160
token.c:1486:tds7_get_data_info: 
	colname = etypeCode (9 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 160 (80 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 80
	Client charset: CP936
	Client column_size: 160
token.c:1486:tds7_get_data_info: 
	colname = etypeName (9 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 160 (80 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 50
	Client charset: CP936
	Client column_size: 100
token.c:1486:tds7_get_data_info: 
	colname = passWord (8 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 100 (50 on server)
token.c:3420:adjust_character_column_size:
	Server charset: CP936
	Server column_size: 20
	Client charset: CP936
	Client column_size: 40
token.c:1486:tds7_get_data_info: 
	colname = KeyNo (5 bytes)
	type = 39 (varchar)
	server's type = 167 (xvarchar)
	column_varint_size = 2
	column_size = 40 (20 on server)
token.c:1556: name                 size/wsize      type/wtype      utype  
token.c:1557: -------------------- --------------- --------------- -------
token.c:1567: aluOrder                   4/4            56/56            0
token.c:1567: ztDBName                 100/50           39/167           0
token.c:1567: ztFullName               100/50           39/167           0
token.c:1567: etypeId                  160/80           39/167           0
token.c:1567: etypeCode                160/80           39/167           0
token.c:1567: etypeName                160/80           39/167           0
token.c:1567: passWord                 100/50           39/167           0
token.c:1567: KeyNo                     40/20           39/167           0
util.c:156:Changed query state from READING to PENDING
dblib.c:4700:dbsqlok() found result token
dblib.c:1668:dbresults(0x7f93f4717dd0)
dblib.c:1674:dbresults: dbresults_state is 1 (_DB_RES_RESULTSET_EMPTY)
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff2d4, 0x7ffeef4ff2d0, 0x6914)
util.c:156:Changed query state from PENDING to READING
token.c:555:processing result tokens.  marker is  d1(ROW)
token.c:666:tds_process_tokens::SET_RETURN stopping on current token
util.c:156:Changed query state from READING to PENDING
dblib.c:1695:dbresults() tds_process_tokens returned 1 (TDS_SUCCEED),
			result_type TDS_ROW_RESULT
dblib.c:1657:dbresults returning 1 (SUCCEED)
dblib.c:1813:dbnumcols(0x7f93f4717dd0)
dblib.c:2761:dbcount(0x7f93f4717dd0)
dblib.c:1813:dbnumcols(0x7f93f4717dd0)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 1)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 1)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 2)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 2)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 3)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 3)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 4)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 4)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 5)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 5)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 6)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 6)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 7)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 7)
dblib.c:1839:dbcolname(0x7f93f4717dd0, 8)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 8)
dblib.c:2018:dbnextrow(0x7f93f4717dd0)
dblib.c:2031:dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff454, 0x0, 0x1508)
util.c:156:Changed query state from PENDING to READING
token.c:555:processing result tokens.  marker is  d1(ROW)
token.c:2304:tds_process_row(): reading column 0 
token.c:2049:tds_get_data: type 56, varint size 0
token.c:2110:tds_get_data(): wire column size is 4 
token.c:2304:tds_process_row(): reading column 1 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 6 
token.c:2304:tds_process_row(): reading column 2 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 20 
token.c:2304:tds_process_row(): reading column 3 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 5 
token.c:2304:tds_process_row(): reading column 4 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 9 
token.c:2304:tds_process_row(): reading column 5 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 6 
token.c:2304:tds_process_row(): reading column 6 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 0 
token.c:2304:tds_process_row(): reading column 7 
token.c:2049:tds_get_data: type 39, varint size 2
token.c:2110:tds_get_data(): wire column size is 0 
util.c:156:Changed query state from READING to PENDING
buffering.h:306:buffer_transfer_bound_data(0x7f93f4717de0 4040 -1 0x7f93f4717dd0 0)
dblib.c:2100:leaving dbnextrow() returning REG_ROW/MORE_ROWS
dblib.c:3162:dbdata(0x7f93f4717dd0, 1)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 1)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 1)
dblib.c:3142:dbdatlen() type = 56, len= 4
dblib.c:3162:dbdata(0x7f93f4717dd0, 2)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 2)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 2)
dblib.c:3142:dbdatlen() type = 39, len= 6
dblib.c:3162:dbdata(0x7f93f4717dd0, 3)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 3)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 3)
dblib.c:3142:dbdatlen() type = 39, len= 20
dblib.c:3162:dbdata(0x7f93f4717dd0, 4)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 4)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 4)
dblib.c:3142:dbdatlen() type = 39, len= 5
dblib.c:3162:dbdata(0x7f93f4717dd0, 5)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 5)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 5)
dblib.c:3142:dbdatlen() type = 39, len= 9
dblib.c:3162:dbdata(0x7f93f4717dd0, 6)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 6)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 6)
dblib.c:3142:dbdatlen() type = 39, len= 6
dblib.c:3162:dbdata(0x7f93f4717dd0, 7)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 7)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 7)
dblib.c:3142:dbdatlen() type = 39, len= 0
dblib.c:3162:dbdata(0x7f93f4717dd0, 8)
dblib.c:2831:dbcoltype(0x7f93f4717dd0, 8)
dblib.c:3133:dbdatlen(0x7f93f4717dd0, 8)
dblib.c:3142:dbdatlen() type = 39, len= 0
dblib.c:2018:dbnextrow(0x7f93f4717dd0)
dblib.c:2031:dbnextrow() dbresults_state = 2 (_DB_RES_RESULTSET_ROWS)
token.c:540:tds_process_tokens(0x7f93f470dec0, 0x7ffeef4ff454, 0x0, 0x1508)
util.c:156:Changed query state from PENDING to READING
token.c:555:processing result tokens.  marker is  fd(DONE)
token.c:2339:tds_process_end: more_results = 0
		was_cancelled = 0
		error = 0
		done_count_valid = 1
token.c:2355:tds_process_end() state set to TDS_IDLE
util.c:156:Changed query state from READING to IDLE
token.c:2370:                rows_affected = 1
util.c:104:logic error: cannot change query state from IDLE to PENDING
dblib.c:2100:leaving dbnextrow() returning NO_MORE_ROWS
dblib.c:2761:dbcount(0x7f93f4717dd0)
{'aluOrder': 1, 'ztDBName': 'yanshi', 'ztFullName': 'yanshi(辉煌演示账套)', 'etypeId': '00000', 'etypeCode': '000000000', 'etypeName': '管理员', 'passWord': '', 'KeyNo': ''}
dblib.c:1443:dbclose(0x7f93f4717dd0)
dblib.c:258:dblib_del_connection(0x100f8e430, 0x7f93f470dec0)
mem.c:615:tds_free_all_results()
util.c:156:Changed query state from IDLE to DEAD
dblib.c:305:dblib_release_tds_ctx(1)
dblib.c:5882:dbfreebuf(0x7f93f4717dd0)

Process finished with exit code 0

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1107482.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

css-水滴登录页

效果图&#xff1a; html <!DOCTYPE html> <html><head><meta charset"utf-8"><title></title><link type"text/css" rel"stylesheet" href"login.css" /></head><body><…

从零开始的C语言学习第十九课:C语言内存函数

目录 1. memcpy使用和模拟实现 2. memmove使用和模拟实现 3. memset函数的使用 4. memcmp函数的使用 1. memcpy使用和模拟实现 void * memcpy ( void * destination, const void * source, size_t num ); 函数memcpy从source的位置开始向后复制num个字节的数据到destinati…

sylar高性能服务器-配置(P9)代码解析+调试分析

文章目录 一、代码解析1.1配置基类(ConfigVarBase)1.2配置参数类(ConfigVar)1.3配置管理类(Config) 二、代码调试2.1SYLAR_LOG_INFO(SYLAR_LOG_ROOT())2.2ConfigVart调试 本节内容主要讲诉了sylar高性能服务器视频P9的内容&#xff0c;并给出了代码逐步调试的步骤和结果。本节内…

Linux块设备缓存Bcache使用

1 Bcache简介 Bcache是Linux内核块层cache&#xff0c;它使用SSD来作为HDD硬盘的cache&#xff0c;从而起到加速作用。Bcache内核模块仅在Linux 3.10及以上版本支持&#xff0c;因此使用Bcache&#xff0c;需要将内核升级到3.10及以上版本&#xff0c;并在内核配置项中打开Bca…

vue3后台管理系统之layout组件的搭建

1.1静态布局 <template><div class"layout_container"><!-- 左侧导航 --><div class"layout_slider"></div><!-- 顶部导航 --><div class"layout_tabbar"></div><!-- 内容展示区 --><…

【Linux】Ubuntu存储分析

文章目录 前言1 如何对系统进行存储分析2 如果出现存储空间不足的警告应该怎么办&#xff1f;3 存储空间太小导致不能开机怎么办&#xff1f;4 如何对系统进行扩容 前言 因为要编译一个ARM架构的Linux SDK&#xff0c;结果没想到这个SDK解压编译完大小远超我想象&#xff0c;直…

【算法|前缀和系列No.5】leetcode1314. 矩阵区域和

个人主页&#xff1a;兜里有颗棉花糖 欢迎 点赞&#x1f44d; 收藏✨ 留言✉ 加关注&#x1f493;本文由 兜里有颗棉花糖 原创 收录于专栏【手撕算法系列专栏】【Leetcode】 &#x1f354;本专栏旨在提高自己算法能力的同时&#xff0c;记录一下自己的学习过程&#xff0c;希望…

【茫茫架构路】1. Class File字节码文件解析

本文所有内容的JDK版本为 OpenJDK 11 JDK11 Class File官方说明。 Java解析字节码文件源码参考&#xff0c;以下为部分字节码解析源码展示。 public ClassFile(DataInputStream in) {try {//magic: 0xCAFEBABEthis.magic ClassReader.readInt(in);System.out.println("m…

Vue 异步更新 -- $nextTick

Vue 异步更新 – $nextTick **创建 工程&#xff1a; H:\java_work\java_springboot\vue_study ctrl按住不放 右键 悬着 powershell H:\java_work\java_springboot\js_study\Vue2_3入门到实战-配套资料\01-随堂代码素材\day04\准备代码\16-$nextTick vue --version vue crea…

Spring(四)

1、Spring6整合JUnit 1、JUnit4 User类: package com.songzhishu.spring.bean;import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component;/*** BelongsProject: Spring6* BelongsPackage: com.songzhishu.spring.bean*…

UI自动化测试的痛点

当我们找工作的时候查看招聘信息发现都需要有自动化测试经验&#xff0c;由此看来测试人员不会一点自动化测试技术都不好意思说自己是做软件测试的。大部分测试人员也都是从使用自动化测试工具、录制回放、测试脚本、开发小工具入门自动化测试的&#xff0c;然后在慢慢的接触 U…

微信隐秘功能:如何巧妙隐藏好友和消息的方法教程

在日常使用微信的过程中&#xff0c;难免会有些私密内容或特定的联系人和群聊希望能够暂时隐藏起来&#xff0c;以保护个人隐私。幸运的是&#xff0c;微信提供了一些内置功能以及额外的工具&#xff0c;能够帮助我们实现这一目的。下面就来详细介绍一种简单易行的方法&#xf…

Mac硬盘检测工具

Mac硬盘检测软件是一款用于检测和诊断Mac硬盘健康状态的工具&#xff0c;帮助用户及时发现潜在的硬盘问题&#xff0c;避免数据丢失和系统故障。通过全面的检测和报告功能&#xff0c;用户可以更好地了解自己的硬盘状况&#xff0c;确保数据的安全和可靠。给大家介绍几款好用的…

【算法导论】摊还分析

目录 一、摊还分析简介二、分析的两个问题1.栈操作2. 二进制计数器递增 三、分析方法1. 聚合分析1.1 栈操作1.2 二进制计数递增 2.核算法2.1 栈操作2.2 二进制计数器递增 3. 势能法3.1 栈操作3.2 二进制计数器递增 一、摊还分析简介 在摊还分析中&#xff0c;我们求数据结构的一…

爬取某音乐榜单歌曲

一、打开网页https://music.163.com/&#xff0c;进入榜单&#xff08;热歌榜&#xff09; 二、右键检查、刷新网页&#xff0c;选择元素&#xff08;点击歌曲名&#xff09; 三、相关代码 import requests #正则表达式模块内置模块 import re import osfilename music\\ if …

手写redux的connect方法, 使用了subscribe获取最新数据

一. 公共方法文件 1. connect文件 import React, { useState } from "react"; import MyContext from "./MyContext"; import _ from "lodash";// 模拟react-redux的 connect高阶函数 const connect (mapStateToProps, mapDispatchToProps) &…

都2023了!别再问我,UI自动化测试怎么做了……

本文关键词&#xff1a;移动端UI自动化思路 大家好&#xff0c;我是老司机。之前测试交流群里有同学问“有没有自动化测试在工作中的案例可以分享“&#xff0c;有是有的。 今天我会详细的描述一个【UI自动化实战在实际工作中的应用】&#xff0c;这是之前贝壳找房我们团队做…

vue单向绑定和双向绑定

一、单向绑定就是&#xff1a;修改视图&#xff0c;数据不变&#xff1b;修改数据&#xff08;app.name"1234"&#xff09;&#xff0c;视图会变 二、双向绑定&#xff1a;修改视图&#xff0c;数据会变&#xff1b;修改数据&#xff0c;视图会变 demo&#xff1a; …

屋顶太阳能光伏系统的性能分析指标研究

&#x1f4a5;&#x1f4a5;&#x1f49e;&#x1f49e;欢迎来到本博客❤️❤️&#x1f4a5;&#x1f4a5; &#x1f3c6;博主优势&#xff1a;&#x1f31e;&#x1f31e;&#x1f31e;博客内容尽量做到思维缜密&#xff0c;逻辑清晰&#xff0c;为了方便读者。 ⛳️座右铭&a…

基于晶体结构优化的BP神经网络(分类应用) - 附代码

基于晶体结构优化的BP神经网络&#xff08;分类应用&#xff09; - 附代码 文章目录 基于晶体结构优化的BP神经网络&#xff08;分类应用&#xff09; - 附代码1.鸢尾花iris数据介绍2.数据集整理3.晶体结构优化BP神经网络3.1 BP神经网络参数设置3.2 晶体结构算法应用 4.测试结果…