آموزش پایتون_تبدیل عدد به رشته

تبدیل عدد به رشته

برای اینکه عدد را به رشته تبدیل کنید کافیه از str استفاده کنیم.مثال  زیر رو ببنید:

»> x=10
»> x
۱۰
»> x=str(x)
»> x
’۱۰’


One thought on "آموزش پایتون_تبدیل عدد به رشته"

  1. Lyza گفت:

    God help me, I put aside a whole afnotroen to figure this out.

دیدگاهتان را بنویسید

We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy.