请教一下如果要在电脑的空白文档上写程式,不能使用IDE等编辑器
比较熟悉及常用的程式语言为JavaScript及Java
可是对于开发Java程式蛮依赖Eclipse协助编译
对于Python熟悉的程度可以印出九九乘法表如下:
# Code
def nine_matrix(num1, num2):
for i in range(1, num1+1, 3):
for j in range(1, num2+1):
k = i*j
print(i, '*', j, '=', '%2i' % (k), '\t\t', i+1, ' *',
j, '=', '{:2}'.format(k), '\t\t', i+2, '*', j, '=',
'{:2d}'.format(k))
print("")
nine_matrix(9, 9)
# Output
1 * 1 = 1 2 * 1 = 1 3 * 1 = 1
1 * 2 = 2 2 * 2 = 2 3 * 2 = 2
1 * 3 = 3 2 * 3 = 3 3 * 3 = 3
1 * 4 = 4 2 * 4 = 4 3 * 4 = 4
1 * 5 = 5 2 * 5 = 5 3 * 5 = 5
1 * 6 = 6 2 * 6 = 6 3 * 6 = 6
1 * 7 = 7 2 * 7 = 7 3 * 7 = 7
1 * 8 = 8 2 * 8 = 8 3 * 8 = 8
1 * 9 = 9 2 * 9 = 9 3 * 9 = 9
4 * 1 = 4 5 * 1 = 4 6 * 1 = 4
4 * 2 = 8 5 * 2 = 8 6 * 2 = 8
4 * 3 = 12 5 * 3 = 12 6 * 3 = 12
...
7 * 9 = 63 8 * 9 = 63 9 * 9 = 63
如果限定要在一定的时间内在空白文档上打上正确的code甚至其测试的code
内容可能是对于字串或阵列进行搜寻或排序
会推荐使用哪种程式语言作答?