我现在在回发时使用Literal创建了复选框我得到了复选框Request.form.Allkeys.但是我不知道如何阅读这些值如何使用它们?我如何计算那里有多少个值,如何在那里找到一些值我希望找到的例子如果request.forum.allkey包含forumaName0..
谢谢
我有一个名为 Main 的主要活动,它具有 onActivityResult 方法。
protected void onActivityResult(int requestCode, int resultCode, Intent data, Bundle extras)
{
Log.i("in OnActivityResult", "in OnActivityResult");
super.onActivityResult(requestCode, resultCode, data);
Log.i("in OnActivityResult", "in OnActivityResult");
ObjectInputStream ois = null;
if(requestCode == SUB_ACTIVITY_REQUEST_CODE)
{
Log.i("in OnActivityResult IFFFF", "in OnActivityResult IFFFF");
extras = getIntent().getExtras();
byte gpBytes[] = extras.getByteArray("gpBytes");
ByteArrayInputStream bis = new ByteArrayInputStream(gpBytes);
try
{
ois = new ObjectInputStream(bis);
gpObject = (GP) ois.readObject();
}
catch (StreamCorruptedException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
} catch (ClassNotFoundException e) { …Run Code Online (Sandbox Code Playgroud) 我想onfling在listview中的每个项目中实现(或一些类似的滑动)listview.如果我滑动该特定项目,它应该在名称旁边显示三个按钮.
有任何想法实现这一点.
我有一个int currentFontSize,我想与存储在C数组中的NSString进行比较,这里是代码.
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
static NSString* fontSizeName[] =
{
@"14",
@"18",
@"22",
@"26",
@"30",
@"34",
};
int fontSizeSegmentID;
int currentFontSize = 22;
NSString *val = [NSString stringWithFormat: @"%i", currentFontSize];
NSString *val2 = @"22";
NSLog(@"the current font size is %i", currentFontSize);
NSLog(@"the current font Value1 is %i", val);
NSLog(@"the current font Value2 is %i",val2);
int i;
for (i = 0; i < 6; i++) {
NSLog(@"fontSizeNAme:%d",fontSizeName[i]);
NSLog(@"val:%d",val); …Run Code Online (Sandbox Code Playgroud) 我想用py2exe或制作EXE文件cx_freeze.
所以我试着用py2exe制作exe文件,但没有运气.
所以现在我正在测试,cx_freeze但它也失败了.
如果有人可以帮助我很多apprecaite
以下是cx_freeze
来自cx_Freeze导入设置,可执行文件的setup.py文件
copyDependentFiles=True
silent = True
includes = ["lxml", "lxml._elementpath", "lxml.etree", "gzip", "encodings.cp949", "encodings.utf_8", "encodings.ascii"]
setup(name='gearfacts',
options = {
"build_exe" : {
"includes": includes,
},
},
executables=[Executable('test.py')],
)
Run Code Online (Sandbox Code Playgroud)
以下是我的脚本源文件.
import lxml,cookielib,urllib,configobj,sys,getopt,string,mechanize,time,os
from lxml import etree
from lxml.html import parse, fromstring
import sys, getopt, string
import lxml.html
import encodings.utf_8
import encodings.euc_kr
import encodings.cp949
br = mechanize.Browser()
cj = cookielib.LWPCookieJar()
br.set_cookiejar(cj)
br.set_handle_equiv(True)
br.set_handle_gzip(True)
br.set_handle_redirect(True) …Run Code Online (Sandbox Code Playgroud) android ×2
asp.net ×1
cx-freeze ×1
findcontrol ×1
listview ×1
nsstring ×1
objective-c ×1
python ×1
swipe ×1