我想在我的博客应用程序的评论和回复部分使用ajax。在基于函数的视图中,一切都运行得很好,但我想做的是基于类的视图。 ***My function based view*** post = get_object_or_404(Post, pk=pk) if request.method == 'POST':
comme
statement and comparison operators to see if the user is old enough age = int(input("Howprint("Please print you're age with only numerical characters, in years")
age = int(input("HowNameError: name 'age'
这就是我如何询问用户他希望看到多少个小数 while not verlaatloop: pi_cijfers = PiBerekening(int(input("With howassert pi_cijfer > 0 # This is one of the things I've tried but I get the "NameError: name 'pi_cijfer' is not defined" error