我是从课堂上写的,然后尝试添加占位符
__declspec(noinline) int testArgsAsm(int* x, char* cp, int a, int b, int c, int d, int e)
{
std::cout << *x << *cp;
int sum = a + b + c + d + e;
if (sum == 0)
std::cout << "0";
else
std::cout << "Non 0";
return sum;
}
int main(int argc, const char** args)
{
int a, b, c, d, e;
int* ip = new int; *ip = 0x101;
char* cp = new char; *cp = ('g');
std::cin >> a >> b >> c >> d >> e;
testArgsAsm(ip, cp, a,b,c,d,e);
return 0;
}
Assembly
testArgsAsm(ip, cp, a,b,c,d,e);
00007FF694DB1359 mov eax,dword ptr [e]
00007FF694DB135D mov r9d,dword ptr [b]
00007FF694DB1362 mov r8d,dword ptr [a]
00007FF694DB1367 mov dword ptr [rsp+30h],eax
00007FF694DB136B mov eax,dword ptr [d]
00007FF694DB136F mov dword ptr [rsp+28h],eax
00007FF694DB1373 mov eax,dword ptr [c]
00007FF694DB1377 mov rdx,rbx
00007FF694DB137A mov rcx,rdi
00007FF694DB137D mov dword ptr [rsp+20h],eax
00007FF694DB1381 call testArgsAsm (07FF694DB1270h) <= Instruction pointer
registers at this instant
RAX = 0000000000000003 RBX = 0000025633A16030 RCX = 0000025633A13EC0 RDX = 0000025633A16030
RSI = 0000000000000000 RDI = 0000025633A13EC0 R8 = 0000000000000001 R9 = 0000000000000002
R10 = 000000000000000F R11 = 000000F5016F0001 R12 = 0000000000000000 R13 = 0000000000000000
R14 = 0000000000000000 R15 = 0000000000000000 RIP = 00007FF694DB1381 RSP = 000000F5016FFB00
RBP = 0000000000000000 EFL = 00000202
像这样并获得错误列表
class ContactUs(forms.Form):
your_email = forms.EmailField(help_text='Enter a valid email.')
subject = forms.CharField(max_length=100, help_text='Enter your subject.')
message = forms.CharField(widget=forms.Textarea(attrs={'placeholder':'test'}), help_text='Enter your message.')
cc = forms.BooleanField(required=False)
答案 0 :(得分:0)
即使使用getData(); // Call *sync* function
console.log('my_data2', my_data);
,您也可以添加小部件。要添加更多EmailField
,您可以使用小部件
attribute
答案 1 :(得分:0)
你可以使用这样的东西:
q = forms.CharField(label='search',
widget=forms.TextInput(attrs={'placeholder': 'Search'}))