blackAlice
1.新建module
 
2.选择本地安装的python
 
3.右键新建的module,创建python file就可以开始编程了
 
4.有时候回出现无法识别python内建函数的问题,就是运行没问题,但是会有红色波浪线提示:unresolved reference
可以尝试右键项目后选择下图的操作,或者新建module的时候换一个python版本(如果有的话),部分版本是正常的
 
 
下面是一个流传甚广的脚本:打印乘法表
# 打印乘法表
end = input("你想要打印乘法表是:")
row = 1
while row <= int(end):
    col = 1
    while col <= row:
        print(str(col) + "x" + str(row) + "=" + str(row * col) + "\t", end="")
        col += 1
    print("")
    row += 1

实现效果:

分类:

技术点:

相关文章:

  • 2021-07-09
  • 2021-04-16
  • 2022-01-12
  • 2021-05-04
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2021-09-13
  • 2022-01-16
  • 2022-01-13
  • 2022-12-23
  • 2021-12-07
相关资源
相似解决方案