#include <cs50.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
//ask user for input
string s = get_string();
//make sure get_string() returned a string
if(s != NUL
如何声明全局空整数?我有简单的代码,但我不知道如何在def之前声明一个变量。在Java中,我可以做到这一点:public int a; 但如何在Python中做到这一点?没有这一点,第三,如果不工作 我的代码: def abcd:
if s<0.72:
if e>30:
a=0
return a
else:
a=0
retur
我有简单的代码在功能unresolver参考。我有问题:“解析参考”一个'更多...“。 在第三个如果功能发生此问题。 我必须声明它的ABCD函数之外,否则在同时每个时间起作用的将根据是否被设置为我声明的值,而不是。怎么做? def abcd(s, e):
if s<0.72:
if e>30:
a=0
return a
else:
a=0