代码很简单,就不多废话了
代码如下:
//读取联系人
public static Uri CONTACTSURI = ContactsContract.Contacts.CONTENT_URI;//联系人
public static void getContactsInfo(Context context,String tag){
String[] projections = new String[]{ContactsContract.Contacts._ID,Cont
1、#coding:utf-8
chose = [
('foo',1,2),
('bar','hello'),
('foo',3,4)
]
def do_foo(x,y):
print('foo',x,y)
def do_bar(s):
print('bar',s)
for tag,*args in chose:
if tag == 'foo':
do_foo(*args)
elif tag == 'bar':
do_bar(*args)
line
DaanV2-NBT.Net
一个NBT库,用于读写NBT文件/数据
用法
读取文件
Itag Compound = NBTReader . ReadFile ( " Path to file " , Endianness . LittleEndian , NBTCompression . Auto );
写入文件
ITag Tag ;
// Writes the tag to the specified file using GZIP compression and