Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提问:类似python中的input函数该怎么打呢 #695

Open
Kumono24 opened this issue Nov 5, 2023 · 3 comments
Open

提问:类似python中的input函数该怎么打呢 #695

Kumono24 opened this issue Nov 5, 2023 · 3 comments

Comments

@Kumono24
Copy link

Kumono24 commented Nov 5, 2023

如题

@yhr000
Copy link

yhr000 commented Feb 21, 2024

用文渊阁的交互

@DashBing
Copy link

+1,靜等回答

@nobodxbodon
Copy link

想实用些的话,不妨试试 木兰,支持基本py内置函数:

using randrange in random
想的 = randrange(100)
loop {
  猜的 = int(input("猜吧:"))
  if 猜的 > 想的 {
    println("大了")
  } elif 猜的 < 想的 {
    println("小了")
  } else {
    println("中了!")
    break
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants