简体   繁体   English

在 python 中从右到左和从左到右

[英]right both right to left and left to right in python

i wrote a code that need to write in a text file a String which contain both a language whose wrote in right to left and left to right我写了一个代码,需要在一个文本文件中写入一个字符串,该字符串包含一种从右到左和从左到右书写的语言

after running i see that the printing is good as you can see in the picture but when i look in the text file, it changes position of each field运行后,我看到打印效果很好,如图所示,但是当我查看文本文件时,它会更改每个字段的 position

how can i make it the same also in the text file???我怎样才能使它在文本文件中也一样???

在此处输入图像描述

在此处输入图像描述

.txt is literally just a plain text editor. .txt实际上只是一个纯文本编辑器。 There is no formatting on that file.该文件没有格式。 .txt didn't have style formatting like ms word when you saved it, you can load the document with style formatting. .txt保存时没有像 ms word 那样的样式格式,您可以加载带有样式格式的文档。

.txt is literally just a plain text editor. .txt实际上只是一个纯文本编辑器。 You cannot style it like HTML using CSS.您不能使用 CSS 像 HTML 那样设置它的样式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM