快手Python笔试题【杭州多测师】【杭州多测师_王sir】

def test():
    for i in range(10):
        if i % 2 !=0:
            print("hello world")
        else:
            pass
test() #调用函数
复制代码
package com.duoceshi.thread;

public class HelloWorld {

    public static void test(){
        for (int i = 0; i < 10 ; i++) {
            if (i % 2 == 0){
                continue;
            }else{
                System.out.println("hello world");
            }
        }
    }

    public static void main(String[] args) {
        HelloWorld.test();
    }
}
复制代码

 

posted @   多测师_树哥  阅读(43)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2021-09-29 以下字符串,如果单词以辅音字母开头,则把辅音字母挪到最后,并在末尾加上“ay”。 如果以元音字母开头,则在末尾加上“hay”。 元音字母是“a.e.i.o.u” 字符串是“My name is Shopline,and i am 2,0000 days old”【杭州多测师】【杭州多测师_王sir】
点击右上角即可分享
微信分享提示