我正在使用读写器acr38f,我的智能卡是SLE4418.如何读取和写入智能卡的文本?
例如: Hello World!
apdu = [0XFF,0X20,0x00,0x00,0x02,0x00,0x00]
响应,sw1,sw2 = cardservice.connection.transmit(apdu)
Run Code Online (Sandbox Code Playgroud)apdu = [0XFF,0xA4,0x00,0x00,0x01,0x05] response, sw1, sw2 = cardservice.connection.transmit( apdu ) apdu = [0XFF,0XB2,0X00,0xA7,0X09] response, sw1, sw2 = cardservice.connection.transmit( apdu ) print response apdu = [0XFF, 0XD0,0x00,0xA7,0x09,0xA7,0x02,0xA7,0x02,0xA7,0x02,0xA7,0x02,0xA7] response, sw1, sw2 = cardservice.connection.transmit( apdu )
卡响应:
connecting to ACS CCID USB Reader 0
ATR 3B 04 92 23 10 91
> FF 20 00 00 02 00 00
< 00 00 00 90 0
> FF A4 00 00 01 05
< …Run Code Online (Sandbox Code Playgroud) 我在like函数中尝试Django原始sql查询,但结果为空.我尝试mysql客户端工具这个查询并获得许多记录.如何解决这个问题?
我的查询:
SELECT s.* , s.id as pk
FROM d_status as s,
(select post_id
from p_useractions
where from_user_id in
(select to_user_id
from p_fallowers
where from_user_id = 1)
) as a
WHERE s.from_user_id = 1 OR
s.text like '%@Mustafa Yontar2123%' OR
s.id = a.post_id
GROUP BY s.id
ORDER BY s.last_update
LIMIT 25
Run Code Online (Sandbox Code Playgroud) 请帮我.示例inf文件:
;=============================================================================
;
; Copyright (c) Intel Corporation (2002).
;
; INTEL MAKES NO WARRANTY OF ANY KIND REGARDING THE CODE. THIS CODE IS
; LICENSED ON AN "AS IS" BASIS AND INTEL WILL NOT PROVIDE ANY SUPPORT,
; ASSISTANCE, INSTALLATION, TRAINING OR OTHER SERVICES. INTEL DOES NOT
; PROVIDE ANY UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY
; DISCLAIMS ANY WARRANTY OF MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR ANY
; PARTICULAR PURPOSE, OR ANY OTHER WARRANTY. Intel disclaims all liability,
; including …Run Code Online (Sandbox Code Playgroud) 我有Python表达式 n <<= 1
你是如何用PHP表达的?